fix local emoji detection

https://github.com/misskey-dev/misskey/pull/7526#discussion_r641886612
This commit is contained in:
syuilo 2021-05-30 10:05:12 +09:00
parent d76345264d
commit 24e7eeca0f
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ export async function populateEmoji(emojiName: string, noteUserHost: string | nu
if (emoji == null) return null; if (emoji == null) return null;
const isLocal = emojiName.endsWith('@.'); const isLocal = emoji.host == null;
const url = isLocal ? emoji.url : `${config.url}/proxy/image.png?${query({url: emoji.url})}`; const url = isLocal ? emoji.url : `${config.url}/proxy/image.png?${query({url: emoji.url})}`;
return { return {