mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Other fix
This commit is contained in:
parent
d444f53286
commit
607711c8b4
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue