diff --git a/packages/backend/src/remote/resolve-user.ts b/packages/backend/src/remote/resolve-user.ts index 4c9ec94a3..81a957634 100644 --- a/packages/backend/src/remote/resolve-user.ts +++ b/packages/backend/src/remote/resolve-user.ts @@ -221,7 +221,7 @@ export async function resolveMentionFromCache(username: string, host: string | n } 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 ?? objectHost)); const href = cached?.url ?? cached?.uri; if (cached && href != null) return { username: cached.username, href: href }; if (isLocal) return { username: username, href: fallback };