mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: early return on invalid actor
This commit is contained in:
@@ -359,7 +359,7 @@ inbox.flag = async (req) => {
|
|||||||
|
|
||||||
// Check if the actor is valid
|
// Check if the actor is valid
|
||||||
if (!await activitypub.actors.assert(actor)) {
|
if (!await activitypub.actors.assert(actor)) {
|
||||||
reject('Flag', objects, actor);
|
return reject('Flag', objects, actor);
|
||||||
}
|
}
|
||||||
|
|
||||||
await Promise.all(subjects.map(async (subject, index) => {
|
await Promise.all(subjects.map(async (subject, index) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user