Skip to content
Snippets Groups Projects
Commit 7a6534f3 authored by syuilo's avatar syuilo
Browse files

カスタム絵文字のURLが空文字列になる場合があるのを修正

parent 97d6c1ee
No related branches found
No related tags found
No related merge requests found
......@@ -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,
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment