mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 19:37:34 -07:00
[backend] Clean up unnecessary code in resolve-user
This commit is contained in:
parent
998bb1ae08
commit
d42a1eeb63
1 changed files with 0 additions and 5 deletions
|
@ -219,11 +219,6 @@ export async function resolveMentionFromCache(username: string, host: string | n
|
||||||
if (finalUsername === null) return null;
|
if (finalUsername === null) return null;
|
||||||
username = finalUsername;
|
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 fallback = getMentionFallbackUri(username, host, objectHost);
|
||||||
const cached = cache.find(r => r.username.toLowerCase() === username.toLowerCase() && r.host === host);
|
const cached = cache.find(r => r.username.toLowerCase() === username.toLowerCase() && r.host === host);
|
||||||
|
|
Loading…
Reference in a new issue