From 73aaa990fbaeed336c53ea67c4243317eb3122c2 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 28 Feb 2025 13:55:52 -0500 Subject: [PATCH] fix: allow actor assertion of loopback actors depending on ACP setting --- src/activitypub/actors.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/activitypub/actors.js b/src/activitypub/actors.js index 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) {