mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 19:23:09 +02:00
カスタム絵文字のURLが空文字列になる場合があるのを修正
This commit is contained in:
parent
97d6c1ee86
commit
7a6534f30b
1 changed files with 2 additions and 2 deletions
|
@ -32,8 +32,8 @@ export class EmojiEntityService {
|
|||
name: emoji.name,
|
||||
category: emoji.category,
|
||||
host: opts.omitHost ? undefined : emoji.host,
|
||||
// ?? emoji.originalUrl してるのは後方互換性のため
|
||||
url: opts.withUrl ? (emoji.publicUrl ?? emoji.originalUrl) : undefined,
|
||||
// || emoji.originalUrl してるのは後方互換性のため(publicUrlはstringなので??はだめ)
|
||||
url: opts.withUrl ? (emoji.publicUrl || emoji.originalUrl) : undefined,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue