out Infinity
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ale 2024-10-13 21:48:03 +02:00
parent 734259f956
commit 1b74679483
2 changed files with 1 additions and 2 deletions

View File

@ -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)
}) })
} }

View File

@ -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'),