summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2021-10-23 02:44:52 +0900
committerGitHub <noreply@github.com>2021-10-23 02:44:52 +0900
commitf33785a09cdb337d437fee656cd91c475d8c893c (patch)
tree7e46bbaf4b1f3e5a450a20c7a7a54514e91cdbe6
parent12.93.0 (diff)
downloadsharkey-f33785a09cdb337d437fee656cd91c475d8c893c.tar.gz
sharkey-f33785a09cdb337d437fee656cd91c475d8c893c.tar.bz2
sharkey-f33785a09cdb337d437fee656cd91c475d8c893c.zip
Fix #7902 (#7903)
* Fix #7902 * Update notification.vue Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
-rw-r--r--src/client/components/notification.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/components/notification.vue b/src/client/components/notification.vue
index bce6333d98..8c2787cf31 100644
--- a/src/client/components/notification.vue
+++ b/src/client/components/notification.vue
@@ -13,7 +13,8 @@
<i v-else-if="notification.type === 'mention'" class="fas fa-at"></i>
<i v-else-if="notification.type === 'quote'" class="fas fa-quote-left"></i>
<i v-else-if="notification.type === 'pollVote'" class="fas fa-poll-h"></i>
- <XReactionIcon v-else-if="notification.type === 'reaction'" :reaction="notification.reaction" :custom-emojis="notification.note.emojis" :no-style="true"/>
+ <!-- notification.reaction が null になることはまずないが、ここでoptional chaining使うと一部ブラウザで刺さるので念の為 -->
+ <XReactionIcon v-else-if="notification.type === 'reaction'" :reaction="notification.reaction ? notification.reaction.replace(/^:(\w+):$/, ':$1@.:') : notification.reaction" :custom-emojis="notification.note.emojis" :no-style="true"/>
</div>
</div>
<div class="tail">