Browse Source

fix to remove replies from initial comment load

pull/1/head
Rob Colbert 3 years ago
parent
commit
6d6803b5a8
  1. 2
      app/services/comment.js

2
app/services/comment.js

@ -185,7 +185,7 @@ class CommentService extends SiteService {
async getForResource (resource, statuses, pagination) {
const comments = await Comment
.find({ resource: resource._id, status: { $in: statuses } })
.find({ resource: resource._id, replyTo: { $exists: false }, status: { $in: statuses } })
.sort({ created: 1 })
.skip(pagination.skip)
.limit(pagination.cpp)

Loading…
Cancel
Save