This commit is contained in:
parent
734259f956
commit
1b74679483
@ -47,7 +47,7 @@ module.exports = (app, apex) => {
|
||||
actor._local = {}
|
||||
actor._local.blockList = []
|
||||
const inbox = await apex.getInbox(actor, 'true'),
|
||||
notes = inbox.orderedItems.filter(e => e.object && e.object.length > 0 && e.object[0].type === 'Note').map(e => e.object[0].content[0])
|
||||
notes = inbox.orderedItems.filter(e => e.object && e.object.length > 0 && e.object[0].type === 'Note').slice(0, 20).map(e => e.object[0].content[0])
|
||||
res.json(notes)
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user