aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_card/user_card.js
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2019-12-12 13:32:52 -0600
committerMark Felder <feld@FreeBSD.org>2019-12-12 13:32:52 -0600
commit821a2bcc68e1a6c5e0b9a8080b0b8a2be04d1dd2 (patch)
tree61b3d62bbd93d9be9c649fa7df8763cbd4bf9195 /src/components/user_card/user_card.js
parent43d4d17b41863dd5784f1d611857a9064759946b (diff)
parent051b9703dffa785eb3b0fde29d2ceab3fe1255ba (diff)
Merge branch 'develop' into feature/lockdown-timelines-private-mode
Diffstat (limited to 'src/components/user_card/user_card.js')
-rw-r--r--src/components/user_card/user_card.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js
index cc8a1ed6..2f649910 100644
--- a/src/components/user_card/user_card.js
+++ b/src/components/user_card/user_card.js
@@ -93,6 +93,12 @@ export default {
const roleTitle = rights.admin ? 'admin' : 'moderator'
return validRole && roleTitle
},
+ hideFollowsCount () {
+ return this.isOtherUser && this.user.hide_follows_count
+ },
+ hideFollowersCount () {
+ return this.isOtherUser && this.user.hide_followers_count
+ },
...mapGetters(['mergedConfig'])
},
components: {
@@ -143,6 +149,9 @@ export default {
}
this.$store.dispatch('setMedia', [attachment])
this.$store.dispatch('setCurrent', attachment)
+ },
+ mentionUser () {
+ this.$store.dispatch('openPostStatusModal', { replyTo: true, repliedUser: this.user })
}
}
}