Skip to content

Node.js based forum software built for the modern web

fix(activitypub): always filter loopback URIs from remote actor persistence

Julian Lamb1222bfb24c9
diff --git a/src/activitypub/actors.js b/src/activitypub/actors.js
index fa0bda2909..dd73803082 100644
--- a/src/activitypub/actors.js
+++ b/src/activitypub/actors.js
@@ -82,10 +82,8 @@ Actors.qualify = async (ids, options = {}) => {
return false;
}
- // Filter out loopback uris
- if (!meta.config.activitypubAllowLoopback) {
- ids = ids.filter(uri => uri !== 'loopback' && new URL(uri).host !== nconf.get('url_parsed').host);
- }
+ // Filter out loopback uris — never persist local URIs as remote actors
+ ids = ids.filter(uri => uri !== 'loopback' && new URL(uri).host !== nconf.get('url_parsed').host);
// Separate those who need migration from user to category
const migrate = new Set();