FIX: Changes text on profile page when viewed by another user.

Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
pull/775/head
Cyrille Bollu 2019-10-02 15:42:49 +02:00
rodzic 0ad91d78eb
commit b2f836631c
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -124,8 +124,8 @@ export default {
}
if (typeof this.emptyContent[this.$route.name] !== 'undefined') {
let content = this.emptyContent[this.$route.name]
// Change text on profile page when accessed by a public (non-authenticated) user
if (this.$route.name === 'profile' && this.serverData.public) {
// Change text on profile page when accessed by another user or a public (non-authenticated) user
if (this.$route.name === 'profile' && (this.serverData.public || this.$route.params.account !== this.currentUser.uid)) {
content.title = this.$route.params.account + ' ' + t('social', 'hasn\'t tooted yet')
}
return this.$route.name === 'timeline' ? this.emptyContent['default'] : content