diff --git a/api/src/api/feed.js b/api/src/api/feed.js index 6834c90..e2a6f2d 100644 --- a/api/src/api/feed.js +++ b/api/src/api/feed.js @@ -8,7 +8,8 @@ module.exports = { // TODO: change algorithm later (to actually get posts instead of accounts) get: [auth.enforceSession, async (req, res) => { var results = [] - const notes = await db.table.objects().find({ type: 'Note' }) + const notes = await db.table.objects() + .find({ type: 'Note', inReplyTo: undefined }) .sort({ _id: -1 }) .toArray() for (var i = 0; i < notes.length; i++) {