From 7eb4421f74614bde3b9fc64def868e509e280c3f Mon Sep 17 00:00:00 2001 From: ale Date: Thu, 24 Oct 2024 19:07:19 +0200 Subject: [PATCH] update version --- lib/apexcustom.js | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/apexcustom.js b/lib/apexcustom.js index 0dbc33e..1297c44 100644 --- a/lib/apexcustom.js +++ b/lib/apexcustom.js @@ -23,11 +23,11 @@ module.exports = (app, apex, client) => { && msg.activity.type) { const type = msg.activity.type.toLowerCase() if (type === 'follow' && msg.recipient.type.toLowerCase() === 'person') { - // const follow = await apex.acceptFollow(msg.recipient, msg.activity) - const act = await apex.buildActivity('Accept', apex.utils.usernameToIRI(constant.nick), ['https://www.w3.org/ns/activitystreams#Public'].concat([msg.actor.id]), { - actor: msg.recipient, - object: msg.activity - }) + const follow = await apex.acceptFollow(msg.recipient, msg.activity), + act = await apex.buildActivity('Accept', apex.utils.usernameToIRI(constant.nick), ['https://www.w3.org/ns/activitystreams#Public'].concat([msg.actor.id]), { + actor: msg.recipient, + object: msg.activity + }) await apex.addToOutbox(await apex.store.getObject(apex.utils.usernameToIRI(constant.nick), true), act) } if (type === 'create' && msg.object.type.toLowerCase() === 'note' && msg.actor.preferredUsername && msg.object.content) { diff --git a/package.json b/package.json index 60e0225..4bbc503 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "node-schedule": "^2.1.1", "parcel": "^2.12.0", "rotating-file-stream": "^3.2.5", - "stream-json": "^1.8.0", + "stream-json": "^1.9.0", "swagger-jsdoc": "^6.2.8", "swagger-ui-express": "^5.0.1" }