mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 02:03:09 +02:00
fix local emoji detection
https://github.com/misskey-dev/misskey/pull/7526#discussion_r641886612
This commit is contained in:
parent
d76345264d
commit
24e7eeca0f
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