diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-11-10 14:09:15 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-11-10 14:09:15 +0900 |
| commit | 73bcd330f7c409f444e2ec34d088dbe5f0c543ca (patch) | |
| tree | 71692628c3c9c7b61b5e2f9b3ea26d2326b01a0d | |
| parent | chore(frontend): アニメーション画像設定をパフォーマンスセ... (diff) | |
| download | misskey-73bcd330f7c409f444e2ec34d088dbe5f0c543ca.tar.gz misskey-73bcd330f7c409f444e2ec34d088dbe5f0c543ca.tar.bz2 misskey-73bcd330f7c409f444e2ec34d088dbe5f0c543ca.zip | |
fix(backend): improve isFederationAllowedHost
| -rw-r--r-- | packages/backend/src/core/UtilityService.ts | 1 |
1 files changed, 1 insertions, 0 deletions
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; |