Other fix

This commit is contained in:
Jesse Wierzbinski 2024-04-09 23:41:29 -10:00
parent d444f53286
commit 607711c8b4
No known key found for this signature in database

View file

@ -227,9 +227,12 @@ export const parseTextMentions = async (text: string) => {
where: {
OR: mentionedPeople.map((person) => ({
username: person.split("@")[1],
instance: {
base_url: person.split("@")[2],
},
instance:
person.split("@").length > 2
? {
base_url: person.split("@")[2],
}
: null,
})),
},
include: userRelations,