Node.js based forum software built for the modern web
fix: patch ap .probe() so that it does not execute on requests for its own resources
Julian Lama80edfa1f118
diff --git a/src/activitypub/index.js b/src/activitypub/index.jsindex 4067405080..80ec4a40f5 100644--- a/src/activitypub/index.js+++ b/src/activitypub/index.js@@ -511,8 +511,8 @@ ActivityPub.probe = async ({ uid, url }) => {// Disable on config setting; restrict lookups to HTTPS-enabled URLs onlyconst { activitypubProbe } = meta.config;- const { protocol } = new URL(url);- if (!activitypubProbe || protocol !== 'https:') {+ const { protocol, host } = new URL(url);+ if (!activitypubProbe || protocol !== 'https:' || host === nconf.get('url_parsed').host) {return false;}