Skip to content

Commit

Permalink
fix: mfm-cheat-sheet if no custom emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
atsu1125 committed Mar 31, 2024
1 parent 2b39533 commit 51f4565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/pages/mfm-cheat-sheet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default defineComponent({
[ 'hashtag', '#test' ],
[ 'url', `https://example.com` ],
[ 'link', `[${this.$ts._mfm.dummy}](https://example.com)` ],
[ 'emoji', `:${this.$instance.emojis[0].name}:` ],
[ 'emoji', this.$instance.emojis.length ? `:${this.$instance.emojis[0].name}:` : `:emojiname:` ],
[ 'userEmoji', `:@${this.$i.username}:` ],
[ 'bold', `**${this.$ts._mfm.dummy}**` ],
[ 'small', `<small>${this.$ts._mfm.dummy}</small>` ],
Expand Down

0 comments on commit 51f4565

Please sign in to comment.