aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_card/user_card.vue
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2018-08-16 13:59:01 +0300
committerHenry Jameson <me@hjkos.com>2018-08-16 13:59:01 +0300
commit6454837ea4d8acc49387562d056490c514dabc91 (patch)
tree37e962dbfeab5d8fd2c338faff50333efe979c32 /src/components/user_card/user_card.vue
parentdecc209fdcd7b62ec46b559b3d5bfc0f1c343b25 (diff)
parentce88f351f7b28a36553e67f7e02373be7b51ef8f (diff)
Merge remote-tracking branch 'upstream/develop' into notifications
* upstream/develop: (26 commits) Update status.vue Update retweet_button.js Update retweet_button.vue Use serverside html rendering in usernames and bios if available. Update status.vue Revert "Merge branch 'feature/hide-all-status-actions-if-not-logged-in' into 'develop'" Hide all status actions if not logged in hopefully, fix linter Fixes broken custom emoji in autocomplete when proxying to remote BE Made it so that unfocused tab doesn't autostream posts when scrolled to the top Remove trailing whitespace Textarea is now focused when replying the missing piece for invites system Fixes selects having unreadable text on some browsers/OSes. Added bonus: theme switcher select now has styled options that show preview of what theme's bg/fg colors are fixed lint cleanup, fixed self-highlighting in notifications, fixed incorrect hex code handling added ability to pick the style of highlighting post-rebase fix, backported d7d787b84cb8e36ad7f622054808f0e66c496309 notifs fix maybe i should actually add myself to contributors list? ...
Diffstat (limited to 'src/components/user_card/user_card.vue')
-rw-r--r--src/components/user_card/user_card.vue10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/user_card/user_card.vue b/src/components/user_card/user_card.vue
index 6478a65f..7e3e0afe 100644
--- a/src/components/user_card/user_card.vue
+++ b/src/components/user_card/user_card.vue
@@ -7,10 +7,16 @@
<user-card-content :user="user" :switcher="false"></user-card-content>
</div>
<div class="name-and-screen-name" v-else>
- <div :title="user.name" class="user-name">
+ <div :title="user.name" v-if="user.name_html" class="user-name">
+ <span v-html="user.name_html"></span>
+ <span class="follows-you" v-if="!userExpanded && showFollows && user.follows_you">
+ {{ $t('user_card.follows_you') }}
+ </span>
+ </div>
+ <div :title="user.name" v-else class="user-name">
{{ user.name }}
<span class="follows-you" v-if="!userExpanded && showFollows && user.follows_you">
- {{ $t('user_card.follows_you') }}
+ {{ $t('user_card.follows_you') }}
</span>
</div>
<a :href="user.statusnet_profile_url" target="blank"><div class="user-screen-name">@{{ user.screen_name }}</div></a>