Merge pull request #787 from StCyr/bugfix/776/do-not-show-followbutton

FIX: do not show follow button when viewer is same as viewed
pull/788/head
Maxence Lange 2019-10-04 19:02:04 -01:00 zatwierdzone przez GitHub
commit 05134a1c38
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 3 dodań i 2 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')">

Wyświetl plik

@ -150,7 +150,7 @@ export default {
},
methods: {
followRemote() {
window.open(OC.generateUrl('/apps/social/api/v1/ostatus/followRemote/' + encodeURI(this.uid)), 'followRemote', 'width=433,height=600toolbar=no,menubar=no,scrollbars=yes,resizable=yes')
window.open(OC.generateUrl('/apps/social/api/v1/ostatus/followRemote/' + encodeURI(this.localUid)), 'followRemote', 'width=433,height=600toolbar=no,menubar=no,scrollbars=yes,resizable=yes')
}
}
}