mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
fix: support reporting remote content in Flag
This commit is contained in:
@@ -386,9 +386,9 @@ inbox.flag = async (req) => {
|
||||
}
|
||||
|
||||
await Promise.all(objects.map(async (subject, index) => {
|
||||
const { type, id } = await activitypub.helpers.resolveLocalId(subject.id);
|
||||
const { type, id } = await activitypub.helpers.resolveObjects(subject.id);
|
||||
try {
|
||||
await flags.create(type, id, actor, content);
|
||||
await flags.create(activitypub.helpers.mapToLocalType(type), id, actor, content);
|
||||
} catch (e) {
|
||||
reject('Flag', objects[index], actor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user