feat: handle Announce(Update(Note)) as well, #13320

This commit is contained in:
Julian Lam
2025-04-23 13:17:10 -04:00
parent 74e32a170f
commit 044736696e
3 changed files with 46 additions and 1 deletions

View File

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