Fix bug
This commit is contained in:
parent
e41f74e77c
commit
895cf53ee1
@ -172,7 +172,7 @@ export default Vue.extend({
|
|||||||
const matched = [];
|
const matched = [];
|
||||||
const max = 30;
|
const max = 30;
|
||||||
|
|
||||||
const customEmojis = (this.os.getMetaSync() || { emojis: [] }).emojis;
|
const customEmojis = (this.os.getMetaSync() || { emojis: [] }).emojis || [];
|
||||||
customEmojis.some(x => {
|
customEmojis.some(x => {
|
||||||
if (x.name.startsWith(this.q)) matched.push({
|
if (x.name.startsWith(this.q)) matched.push({
|
||||||
name: x.name,
|
name: x.name,
|
||||||
|
@ -186,7 +186,7 @@ export default Vue.component('misskey-flavored-markdown', {
|
|||||||
|
|
||||||
case 'emoji': {
|
case 'emoji': {
|
||||||
//#region カスタム絵文字
|
//#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));
|
const customEmoji = customEmojis.find(e => e.name == token.emoji || (e.aliases || []).includes(token.emoji));
|
||||||
if (customEmoji) {
|
if (customEmoji) {
|
||||||
return [createElement('img', {
|
return [createElement('img', {
|
||||||
|
Loading…
Reference in New Issue
Block a user