mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
fix: use actor id in flags
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user