Node.js based forum software built for the modern web
fix: allow actor assertion of loopback actors depending on ACP setting
Julian Lam73aaa990fbae
diff --git a/src/activitypub/actors.js b/src/activitypub/actors.jsindex 0fa91f49c2..c9e6db7f2f 100644--- a/src/activitypub/actors.js+++ b/src/activitypub/actors.js@@ -73,7 +73,9 @@ Actors.assert = async (ids, options = {}) => {}// Filter out loopback uris- ids = ids.filter(uri => uri !== 'loopback' && new URL(uri).host !== nconf.get('url_parsed').host);+ if (!meta.config.activitypubAllowLoopback) {+ ids = ids.filter(uri => uri !== 'loopback' && new URL(uri).host !== nconf.get('url_parsed').host);+ }// Only assert those who haven't been seen recently (configurable), unless update flag passed in (force refresh)if (!options.update) {