カスタム絵文字の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,
|
name: emoji.name,
|
||||||
category: emoji.category,
|
category: emoji.category,
|
||||||
host: opts.omitHost ? undefined : emoji.host,
|
host: opts.omitHost ? undefined : emoji.host,
|
||||||
// ?? emoji.originalUrl してるのは後方互換性のため
|
// || emoji.originalUrl してるのは後方互換性のため(publicUrlはstringなので??はだめ)
|
||||||
url: opts.withUrl ? (emoji.publicUrl ?? emoji.originalUrl) : undefined,
|
url: opts.withUrl ? (emoji.publicUrl || emoji.originalUrl) : undefined,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue