mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
Safeguard for local users
This commit is contained in:
parent
b076d61d36
commit
5024eee5db
|
|
@ -249,6 +249,8 @@ export const parseTextMentions = async (text: string) => {
|
||||||
|
|
||||||
// Attempt to resolve mentions that were not found
|
// Attempt to resolve mentions that were not found
|
||||||
for (const person of notFound) {
|
for (const person of notFound) {
|
||||||
|
if (person.split("@").length < 2) continue;
|
||||||
|
|
||||||
const user = await resolveWebFinger(
|
const user = await resolveWebFinger(
|
||||||
person.split("@")[1],
|
person.split("@")[1],
|
||||||
person.split("@")[2],
|
person.split("@")[2],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue