This commit is contained in:
syuilo 2024-09-28 18:15:32 +09:00 committed by GitHub
parent c3b0e1a2bd
commit f0d0cd2e50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 139 additions and 19 deletions

View file

@ -53,8 +53,7 @@ export class DeliverProcessorService {
public async process(job: Bull.Job<DeliverJobData>): Promise<string> {
const { host } = new URL(job.data.to);
// ブロックしてたら中断
if (this.utilityService.isBlockedHost(this.meta.blockedHosts, this.utilityService.toPuny(host))) {
if (!this.utilityService.isFederationAllowedUri(job.data.to)) {
return 'skip (blocked)';
}