From 876f7633fe34039c6f25831fa63ecc55d99081ff Mon Sep 17 00:00:00 2001 From: eal Date: Thu, 9 Aug 2018 12:52:34 +0300 Subject: [PATCH] Use serverside html rendering in usernames and bios if available. --- src/components/notification/notification.vue | 3 ++- src/components/status/status.js | 1 + src/components/status/status.vue | 6 ++++-- src/components/user_card/user_card.vue | 10 ++++++++-- src/components/user_card_content/user_card_content.vue | 6 ++++-- 5 files changed, 19 insertions(+), 7 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 @@
- {{ notification.action.user.name }} + + {{ notification.action.user.name }} {{$t('notifications.favorited_you')}} diff --git a/src/components/status/status.js b/src/components/status/status.js index 87ef90d8..eb7d24d6 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -40,6 +40,7 @@ const Status = { }, retweet () { return !!this.statusoid.retweeted_status }, retweeter () { return this.statusoid.user.name }, + retweeterHtml () { return this.statusoid.user.name_html }, status () { if (this.retweet) { return this.statusoid.retweeted_status diff --git a/src/components/status/status.vue b/src/components/status/status.vue index f88c810d..e49958aa 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -11,7 +11,8 @@
- {{retweeter}} + + {{retweeter}} {{$t('timeline.repeated')}}
@@ -30,7 +31,8 @@
-
+
+ + + {{ $t('user_card.follows_you') }} + +
+
{{ user.name }} - {{ $t('user_card.follows_you') }} + {{ $t('user_card.follows_you') }}
@{{ user.screen_name }}
diff --git a/src/components/user_card_content/user_card_content.vue b/src/components/user_card_content/user_card_content.vue index 09e91271..96923786 100644 --- a/src/components/user_card_content/user_card_content.vue +++ b/src/components/user_card_content/user_card_content.vue @@ -13,7 +13,8 @@
-
{{user.name}}
+
+
{{user.name}}
@{{user.screen_name}} {{dailyAvg}} {{ $t('user_card.per_day') }} @@ -88,7 +89,8 @@ {{user.followers_count}}
-

{{user.description}}

+

+

{{ user.description }}