This commit is contained in:
parent
734259f956
commit
1b74679483
@ -47,7 +47,7 @@ module.exports = (app, apex) => {
|
|||||||
actor._local = {}
|
actor._local = {}
|
||||||
actor._local.blockList = []
|
actor._local.blockList = []
|
||||||
const inbox = await apex.getInbox(actor, 'true'),
|
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)
|
res.json(notes)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0
|
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0
|
||||||
require('events').EventEmitter.defaultMaxListeners = Infinity
|
|
||||||
const apexinstance = require('./lib/apex'),
|
const apexinstance = require('./lib/apex'),
|
||||||
apexcustom = require('./lib/apexcustom'),
|
apexcustom = require('./lib/apexcustom'),
|
||||||
apiswagger = require('./lib/apiswagger'),
|
apiswagger = require('./lib/apiswagger'),
|
||||||
|
Loading…
Reference in New Issue
Block a user