Don't show private messages on pages.meet feed
This commit is contained in:
parent
ecf26c4eb8
commit
498110c7c3
|
@ -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) }
|
||||
|
||||
|
|
Loading…
Reference in New Issue