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: { where: {
OR: mentionedPeople.map((person) => ({ OR: mentionedPeople.map((person) => ({
username: person.split("@")[1], username: person.split("@")[1],
instance: { instance:
person.split("@").length > 2
? {
base_url: person.split("@")[2], base_url: person.split("@")[2],
}, }
: null,
})), })),
}, },
include: userRelations, include: userRelations,