server: also search human readable URL

Changelog: Fixed
This commit is contained in:
Johann150 2023-01-23 18:05:17 +01:00
parent 78f5ca3792
commit 66ec875624
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -62,9 +62,11 @@ export class DbResolver {
id: parsed.id,
});
} else {
return await Notes.findOneBy({
return await Notes.findOneBy([{
uri: parsed.uri,
});
}, {
url: parsed.uri,
}]);
}
}