mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 11:57:34 -07:00
Also search for url field when looking for existing note in database
This commit is contained in:
parent
f3dbe59faa
commit
5c9d8b21a5
1 changed files with 9 additions and 2 deletions
|
@ -80,8 +80,15 @@ export default class DbResolver {
|
||||||
id: parsed.id,
|
id: parsed.id,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return await Notes.findOneBy({
|
return await Notes.findOne({
|
||||||
|
where: [
|
||||||
|
{
|
||||||
uri: parsed.uri,
|
uri: parsed.uri,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
url: parsed.uri,
|
||||||
|
},
|
||||||
|
],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue