Don't show replies on /feed/meet

This commit is contained in:
Niko 2022-02-16 22:03:42 +01:00
parent e60cfc15db
commit 456b9cea18
1 changed files with 2 additions and 1 deletions

View File

@ -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++) {