From d42a1eeb63fca386991e752010f64be11978e1ca Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Wed, 18 Oct 2023 00:09:53 +0200 Subject: [PATCH] [backend] Clean up unnecessary code in resolve-user --- packages/backend/src/remote/resolve-user.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/backend/src/remote/resolve-user.ts b/packages/backend/src/remote/resolve-user.ts index b2fa71432..4c9ec94a3 100644 --- a/packages/backend/src/remote/resolve-user.ts +++ b/packages/backend/src/remote/resolve-user.ts @@ -219,11 +219,6 @@ export async function resolveMentionFromCache(username: string, host: string | n if (finalUsername === null) return null; username = finalUsername; } - try { - if (isLocal) username = await resolveUser(username, null).then(p => p?.username ?? username); - } catch { - return null; - } const fallback = getMentionFallbackUri(username, host, objectHost); const cached = cache.find(r => r.username.toLowerCase() === username.toLowerCase() && r.host === host);