From 5024eee5db28ed746d0f227df709b59d07d605c8 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Wed, 10 Apr 2024 12:47:44 -1000 Subject: [PATCH] Safeguard for local users --- database/entities/Status.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/database/entities/Status.ts b/database/entities/Status.ts index aa492328..e330dd1e 100644 --- a/database/entities/Status.ts +++ b/database/entities/Status.ts @@ -249,6 +249,8 @@ export const parseTextMentions = async (text: string) => { // Attempt to resolve mentions that were not found for (const person of notFound) { + if (person.split("@").length < 2) continue; + const user = await resolveWebFinger( person.split("@")[1], person.split("@")[2],