mirror of
https://akkoma.dev/lamp/akkoma-fe.git
synced 2026-06-05 06:40:04 -04:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ca8689fc88 |
@@ -234,16 +234,21 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
case 'emojiCode': {
|
case 'emojiCode': {
|
||||||
return [h('div', {
|
const emoj = this.status.emojis.find((emoji) => emoji.shortcode === token.props.name)
|
||||||
class: 'still-image emoji img'
|
if (emoj) {
|
||||||
},
|
return [h('div', {
|
||||||
[h('img', {
|
class: 'still-image emoji img'
|
||||||
key: Math.random(),
|
},
|
||||||
title: token.props.name,
|
[h('img', {
|
||||||
alt: token.props.name,
|
key: Math.random(),
|
||||||
src: this.status.emojis.find((emoji) => emoji.shortcode === token.props.name).static_url
|
title: token.props.name,
|
||||||
})]
|
alt: token.props.name,
|
||||||
)]
|
src: this.status.emojis.find((emoji) => emoji.shortcode === token.props.name).static_url
|
||||||
|
})]
|
||||||
|
)]
|
||||||
|
} else {
|
||||||
|
return `:${token.props.name}:`
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
case 'unicodeEmoji': {
|
case 'unicodeEmoji': {
|
||||||
|
|||||||
Reference in New Issue
Block a user