mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-04 03:37:27 +00:00
remove duplicate check for note.url
This commit is contained in:
parent
43d87270d9
commit
face6527f2
1 changed files with 0 additions and 4 deletions
|
@ -439,10 +439,6 @@ export class ApNoteService {
|
||||||
|
|
||||||
const url = getOneApHrefNullable(note.url);
|
const url = getOneApHrefNullable(note.url);
|
||||||
|
|
||||||
if (url && !checkHttps(url)) {
|
|
||||||
throw new UnrecoverableError(`unexpected schema of note url ${url}: ${noteUri}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (url != null) {
|
if (url != null) {
|
||||||
if (!checkHttps(url)) {
|
if (!checkHttps(url)) {
|
||||||
throw new UnrecoverableError(`unexpected schema of note.url ${url} in ${noteUri}`);
|
throw new UnrecoverableError(`unexpected schema of note.url ${url} in ${noteUri}`);
|
||||||
|
|
Loading…
Reference in a new issue