FIX: Do not show follow button when viewer's account is the same as viewed one.

Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
pull/787/head
Cyrille Bollu 2019-10-04 15:07:24 +02:00
rodzic 7ac1be6545
commit 5b948b76e6
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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')">