Node.js based forum software built for the modern web
feat: handle incoming Announce(Delete), closes #13712
Julian Lam4d5005b97266
diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.jsindex 9b5f85db69..9f8f3c5ebe 100644--- a/src/activitypub/inbox.js+++ b/src/activitypub/inbox.js@@ -321,6 +321,12 @@ inbox.announce = async (req) => {break;}+ case object.type === 'Delete': {+ req.body = object;+ await inbox.delete(req);+ break;+ }+case object.type === 'Create': {object = object.object;// falls through