fix: deep clone activity prop before execution; feps.announce

This commit is contained in:
Julian Lam
2025-12-02 13:42:06 -05:00
parent 8236b594af
commit 977a67f4cd
2 changed files with 2 additions and 3 deletions

View File

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