diff options
| author | eal <eal@waifu.club> | 2018-08-09 12:52:34 +0300 |
|---|---|---|
| committer | eal <eal@waifu.club> | 2018-08-09 12:52:34 +0300 |
| commit | 876f7633fe34039c6f25831fa63ecc55d99081ff (patch) | |
| tree | c337057feb7e18d2e30ace5bc576133fe74b633a /src/components/notification/notification.vue | |
| parent | 5cfc247c6b7f5dcdf7ef7e552d85f31615129eab (diff) | |
Use serverside html rendering in usernames and bios if available.
Diffstat (limited to 'src/components/notification/notification.vue')
| -rw-r--r-- | src/components/notification/notification.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/notification/notification.vue b/src/components/notification/notification.vue index eed598a8..208e389c 100644 --- a/src/components/notification/notification.vue +++ b/src/components/notification/notification.vue @@ -10,7 +10,8 @@ </div> <span class="notification-details"> <div class="name-and-action"> - <span class="username" :title="'@'+notification.action.user.screen_name">{{ notification.action.user.name }}</span> + <span class="username" v-if="!!notification.action.user.name_html" :title="'@'+notification.action.user.screen_name" v-html="notification.action.user.name_html"></span> + <span class="username" v-else :title="'@'+notification.action.user.screen_name">{{ notification.action.user.name }}</span> <span v-if="notification.type === 'favorite'"> <i class="fa icon-star lit"></i> <small>{{$t('notifications.favorited_you')}}</small> |
