From b2f836631c1f242096b4b07db8434557f7ce3f64 Mon Sep 17 00:00:00 2001 From: Cyrille Bollu Date: Wed, 2 Oct 2019 15:42:49 +0200 Subject: [PATCH] FIX: Changes text on profile page when viewed by another user. Signed-off-by: Cyrille Bollu --- src/components/TimelineList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/TimelineList.vue b/src/components/TimelineList.vue index 7ca9b73e..f35115c9 100644 --- a/src/components/TimelineList.vue +++ b/src/components/TimelineList.vue @@ -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