fix: early return on invalid actor

This commit is contained in:
Opliko
2024-04-06 19:10:49 +02:00
parent e25f06212f
commit 2d1524eeff

View File

@@ -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) => {