0
0
This commit is contained in:
syuilo 2018-11-01 18:05:14 +09:00
parent e41f74e77c
commit 895cf53ee1
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
2 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ export default Vue.extend({
const matched = [];
const max = 30;
const customEmojis = (this.os.getMetaSync() || { emojis: [] }).emojis;
const customEmojis = (this.os.getMetaSync() || { emojis: [] }).emojis || [];
customEmojis.some(x => {
if (x.name.startsWith(this.q)) matched.push({
name: x.name,

View File

@ -186,7 +186,7 @@ export default Vue.component('misskey-flavored-markdown', {
case 'emoji': {
//#region カスタム絵文字
const customEmojis = (this.os.getMetaSync() || { emojis: [] }).emojis;
const customEmojis = (this.os.getMetaSync() || { emojis: [] }).emojis || [];
const customEmoji = customEmojis.find(e => e.name == token.emoji || (e.aliases || []).includes(token.emoji));
if (customEmoji) {
return [createElement('img', {