Skip to content

Node.js based forum software built for the modern web

fix: do not include actor from reflected activity when rebroadcasting remote cid

Julian Lam3fa74d4cecc1
diff --git a/src/activitypub/feps.js b/src/activitypub/feps.js
index a84600ca65..9fb0e28680 100644
--- a/src/activitypub/feps.js
+++ b/src/activitypub/feps.js
@@ -42,7 +42,7 @@ Feps.announce = async function announce(id, activity) {
}
const { actor } = activity;
- if (actor && !actor.startsWith(nconf.get('url'))) {
+ if (localCid && actor && !actor.startsWith(nconf.get('url'))) {
targets.unshift(actor);
}
const now = Date.now();