fix: use actor id in flags

This commit is contained in:
Opliko
2024-04-06 19:10:13 +02:00
parent d9eba6d297
commit e25f06212f

View File

@@ -365,7 +365,7 @@ inbox.flag = async (req) => {
await Promise.all(subjects.map(async (subject, index) => {
const { type, id } = subject;
try {
await flags.create(type, id, activitypub._constants.uid, content);
await flags.create(type, id, actor, content);
} catch (e) {
reject('Flag', objects[index], actor);
}