diff --git a/api/src/api/feed.js b/api/src/api/feed.js index ec11e27..b1a354f 100644 --- a/api/src/api/feed.js +++ b/api/src/api/feed.js @@ -8,7 +8,11 @@ module.exports = { // TODO: change algorithm later (to actually get posts instead of accounts) get: [auth.enforceSession, async (req, res) => { var results = [] - var filter = { type: 'Note', inReplyTo: undefined } + var filter = { + type: 'Note', + inReplyTo: { $exists: false }, + to: { $in: ["as:Public"] }, + } if (req.query.skip !== undefined) filter._id = { $lt: utils.mongo.getID(req.query.skip) }