From 2d1524eeff821936a9ee79edb8f7e65cd96a0283 Mon Sep 17 00:00:00 2001 From: Opliko Date: Sat, 6 Apr 2024 19:10:49 +0200 Subject: [PATCH] fix: early return on invalid actor --- src/activitypub/inbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.js index 4da3b27cdd..ed8d683e81 100644 --- a/src/activitypub/inbox.js +++ b/src/activitypub/inbox.js @@ -359,7 +359,7 @@ inbox.flag = async (req) => { // Check if the actor is valid if (!await activitypub.actors.assert(actor)) { - reject('Flag', objects, actor); + return reject('Flag', objects, actor); } await Promise.all(subjects.map(async (subject, index) => {