Node.js based forum software built for the modern web
fix: partial revert to fix url_parsed not being available at top of file @barisusakli
Julian Lam8ecbb5cc5c07
diff --git a/src/activitypub/index.js b/src/activitypub/index.jsindex 64b5f47dd9..5cfb5cf308 100644--- a/src/activitypub/index.js+++ b/src/activitypub/index.js@@ -21,8 +21,6 @@ const requestCache = ttl({ttl: 1000 * 60 * 5, // 5 minutes});-const urlHostname = nconf.get('url_parsed').hostname;-const ActivityPub = module.exports;ActivityPub._constants = Object.freeze({@@ -89,7 +87,7 @@ ActivityPub.resolveInboxes = async (ids) => {if (!meta.config.activitypubAllowLoopback) {ids = ids.filter((id) => {const { hostname } = new URL(id);- return hostname !== urlHostname;+ return hostname !== nconf.get('url_parsed').hostname;});}