0
0

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

View File

@ -61,7 +61,7 @@ export async function populateEmoji(emojiName: string, noteUserHost: string | nu
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})}`;
return {