mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-08 10:51:28 +02:00
fix: deep clone activity prop before execution; feps.announce
This commit is contained in:
@@ -10,6 +10,8 @@ const activitypub = module.parent.exports;
|
||||
const Feps = module.exports;
|
||||
|
||||
Feps.announce = async function announce(id, activity) {
|
||||
activity = structuredClone(activity);
|
||||
|
||||
let localId;
|
||||
if (String(id).startsWith(nconf.get('url'))) {
|
||||
({ id: localId } = await activitypub.helpers.resolveLocalId(id));
|
||||
|
||||
Reference in New Issue
Block a user