diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-05-30 10:05:12 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-05-30 10:05:12 +0900 |
| commit | 24e7eeca0f912a11d4ec2664731b0f929ac26952 (patch) | |
| tree | 758a714dc25ce6c2f710faac5dbbc995890d3334 /src/misc | |
| parent | fix bug (diff) | |
| download | misskey-24e7eeca0f912a11d4ec2664731b0f929ac26952.tar.gz misskey-24e7eeca0f912a11d4ec2664731b0f929ac26952.tar.bz2 misskey-24e7eeca0f912a11d4ec2664731b0f929ac26952.zip | |
fix local emoji detection
https://github.com/misskey-dev/misskey/pull/7526#discussion_r641886612
Diffstat (limited to 'src/misc')
| -rw-r--r-- | src/misc/populate-emojis.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/populate-emojis.ts b/src/misc/populate-emojis.ts index a3f67ccb98..42aaaf0705 100644 --- a/src/misc/populate-emojis.ts +++ b/src/misc/populate-emojis.ts @@ -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 { |