Skip to content

Node.js based forum software built for the modern web

fix: use actor id in flags

Oplikoe25f06212f3a
diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.js
index 1d414d5f8a..4da3b27cdd 100644
--- a/src/activitypub/inbox.js
+++ b/src/activitypub/inbox.js
@@ -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);
}