kopia lustrzana https://github.com/nextcloud/social
FIX: Changes text on profile page when viewed by another user.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>pull/775/head
rodzic
0ad91d78eb
commit
b2f836631c
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue