fix local emoji detection
https://github.com/misskey-dev/misskey/pull/7526#discussion_r641886612
This commit is contained in:
parent
6d770a6689
commit
79a2724229
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue