From a80edfa1f11823bd6e0047b7b51ebbc0493d83c3 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 29 May 2025 15:15:06 -0400 Subject: [PATCH] fix: patch ap .probe() so that it does not execute on requests for its own resources --- src/activitypub/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/activitypub/index.js b/src/activitypub/index.js index 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 only const { 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; }