This commit is contained in:
parent
980b186c31
commit
7eb4421f74
@ -23,8 +23,8 @@ module.exports = (app, apex, client) => {
|
|||||||
&& msg.activity.type) {
|
&& msg.activity.type) {
|
||||||
const type = msg.activity.type.toLowerCase()
|
const type = msg.activity.type.toLowerCase()
|
||||||
if (type === 'follow' && msg.recipient.type.toLowerCase() === 'person') {
|
if (type === 'follow' && msg.recipient.type.toLowerCase() === 'person') {
|
||||||
// const follow = await apex.acceptFollow(msg.recipient, msg.activity)
|
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]), {
|
act = await apex.buildActivity('Accept', apex.utils.usernameToIRI(constant.nick), ['https://www.w3.org/ns/activitystreams#Public'].concat([msg.actor.id]), {
|
||||||
actor: msg.recipient,
|
actor: msg.recipient,
|
||||||
object: msg.activity
|
object: msg.activity
|
||||||
})
|
})
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
"node-schedule": "^2.1.1",
|
"node-schedule": "^2.1.1",
|
||||||
"parcel": "^2.12.0",
|
"parcel": "^2.12.0",
|
||||||
"rotating-file-stream": "^3.2.5",
|
"rotating-file-stream": "^3.2.5",
|
||||||
"stream-json": "^1.8.0",
|
"stream-json": "^1.9.0",
|
||||||
"swagger-jsdoc": "^6.2.8",
|
"swagger-jsdoc": "^6.2.8",
|
||||||
"swagger-ui-express": "^5.0.1"
|
"swagger-ui-express": "^5.0.1"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user