1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-20 08:15:49 +02:00

Merge branch 'develop' into copilot/add-user-mute-settings

This commit is contained in:
かっこかり
2025-11-10 18:38:04 +09:00
committed by GitHub
36 changed files with 376 additions and 161 deletions

View File

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