mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-24 10:24:15 +02:00
enhance: 絵文字データの参照を自前ライブラリに変更 (#17381)
* wip * enhance: 絵文字データの参照を自前ライブラリに変更 * fix * update to v17.0.2 * fix assets handling * fix * update mfm-js * update emoji library * Update COPYING [ci skip] * Update Changelog * Update Changelog * fix: 端末の絵文字にフォールバックできるように
This commit is contained in:
@@ -19,7 +19,7 @@ export function char2fluentEmojiFilePath(char: string): string {
|
||||
// Fluent Emojiは国旗非対応 https://github.com/microsoft/fluentui-emoji/issues/25
|
||||
if (codes[0]?.startsWith('1f1')) return char2twemojiFilePath(char);
|
||||
if (!codes.includes('200d')) codes = codes.filter(x => x !== 'fe0f');
|
||||
codes = codes.filter(x => x != null && x.length > 0);
|
||||
const fileName = (codes as string[]).map(x => x.padStart(4, '0')).join('-');
|
||||
codes = codes.filter(x => x && x.length);
|
||||
const fileName = codes.join('-');
|
||||
return `${fluentEmojiPngBase}/${fileName}.png`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user