fix: patch ap .probe() so that it does not execute on requests for its own resources

This commit is contained in:
Julian Lam
2025-05-29 15:15:06 -04:00
parent a9348e3607
commit a80edfa1f1

View File

@@ -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;
}