fix: support reporting remote content in Flag

This commit is contained in:
Opliko
2024-04-14 02:42:30 +02:00
parent a1a7fb77da
commit 026449dc4a
4 changed files with 20 additions and 4 deletions

View File

@@ -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);
}