Don't show private messages on pages.meet feed

This commit is contained in:
Niko 2022-02-21 18:53:13 +01:00
parent ecf26c4eb8
commit 498110c7c3
1 changed files with 5 additions and 1 deletions

View File

@ -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) }