summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrille Bollu <cyrpub@bollu.be>2019-10-04 15:07:24 +0200
committerCyrille Bollu <cyrpub@bollu.be>2019-10-04 15:07:24 +0200
commit5b948b76e641033b4e4404238ae357821cea0275 (patch)
treea26f71cd97f9044ede72100726c2fe3356c1b502
parent7ac1be654595626fa299d2918159ca16e43b4a3f (diff)
FIX: Do not show follow button when viewer's account is the same as viewed one.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
-rw-r--r--src/components/FollowButton.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/FollowButton.vue b/src/components/FollowButton.vue
index f23a91cc..d2c76953 100644
--- a/src/components/FollowButton.vue
+++ b/src/components/FollowButton.vue
@@ -21,7 +21,8 @@
-->
<template>
- <div v-if="!serverData.public && cloudId !== account && actorInfo">
+ <!-- Show button only if user is authenticated and she is not the same as the account viewed -->
+ <div v-if="!serverData.public && actorInfo && actorInfo.viewerLink!='viewer'">
<button v-if="isCurrentUserFollowing" :class="{'icon-loading-small': followLoading}"
@click="unfollow()"
@mouseover="followingText=t('social', 'Unfollow')" @mouseleave="followingText=t('social', 'Following')">