mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +01:00
[backend] Clean up unnecessary code in resolve-user
This commit is contained in:
parent
998bb1ae08
commit
d42a1eeb63
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user