From 73bcd330f7c409f444e2ec34d088dbe5f0c543ca Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Mon, 10 Nov 2025 14:09:15 +0900 Subject: [PATCH] fix(backend): improve isFederationAllowedHost --- packages/backend/src/core/UtilityService.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/backend/src/core/UtilityService.ts b/packages/backend/src/core/UtilityService.ts index 67ec6cc7b0..21ea9b9983 100644 --- a/packages/backend/src/core/UtilityService.ts +++ b/packages/backend/src/core/UtilityService.ts @@ -133,6 +133,7 @@ export class UtilityService { @bindThis public isFederationAllowedHost(host: string): boolean { + if (this.isSelfHost(host)) return true; if (this.meta.federation === 'none') return false; if (this.meta.federation === 'specified' && !this.meta.federationHosts.some(x => `.${host.toLowerCase()}`.endsWith(`.${x}`))) return false; if (this.isBlockedHost(this.meta.blockedHosts, host)) return false;