Don't show replies on /feed/meet
This commit is contained in:
parent
e60cfc15db
commit
456b9cea18
|
@ -8,7 +8,8 @@ module.exports = {
|
||||||
// TODO: change algorithm later (to actually get posts instead of accounts)
|
// TODO: change algorithm later (to actually get posts instead of accounts)
|
||||||
get: [auth.enforceSession, async (req, res) => {
|
get: [auth.enforceSession, async (req, res) => {
|
||||||
var results = []
|
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 })
|
.sort({ _id: -1 })
|
||||||
.toArray()
|
.toArray()
|
||||||
for (var i = 0; i < notes.length; i++) {
|
for (var i = 0; i < notes.length; i++) {
|
||||||
|
|
Loading…
Reference in New Issue