backend: removed uri and url mismatch checking

This commit is contained in:
fly_mc 2024-11-27 02:48:27 +08:00
parent ff5cf73fe3
commit 8cb9e048ae

View file

@ -165,9 +165,9 @@ export class ApNoteService {
throw new Error('unexpected schema of note url: ' + url);
}
if (this.utilityService.punyHost(url) !== this.utilityService.punyHost(note.id)) {
throw new Error(`note url & uri host mismatch: note url: ${url}, note uri: ${note.id}`);
}
// if (this.utilityService.punyHost(url) !== this.utilityService.punyHost(note.id)) {
// throw new Error(`note url & uri host mismatch: note url: ${url}, note uri: ${note.id}`);
// }
}
this.logger.info(`Creating the Note: ${note.id}`);