mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
feat: handle Announce(Update(Note)) as well, #13320
This commit is contained in:
@@ -286,6 +286,12 @@ inbox.announce = async (req) => {
|
||||
break;
|
||||
}
|
||||
|
||||
case object.type === 'Update': {
|
||||
req.body = object;
|
||||
await inbox.update(req);
|
||||
break;
|
||||
}
|
||||
|
||||
case activitypub._constants.acceptedPostTypes.includes(object.type): {
|
||||
if (String(object.id).startsWith(nconf.get('url'))) { // Local object
|
||||
const { type, id } = await activitypub.helpers.resolveLocalId(object.id);
|
||||
|
||||
Reference in New Issue
Block a user