remove duplicate check for note.url

This commit is contained in:
Hazelnoot 2024-11-21 10:55:42 -05:00
parent 43d87270d9
commit face6527f2

View file

@ -439,10 +439,6 @@ export class ApNoteService {
const url = getOneApHrefNullable(note.url);
if (url && !checkHttps(url)) {
throw new UnrecoverableError(`unexpected schema of note url ${url}: ${noteUri}`);
}
if (url != null) {
if (!checkHttps(url)) {
throw new UnrecoverableError(`unexpected schema of note.url ${url} in ${noteUri}`);