diff options
Diffstat (limited to 'src/mixins')
-rw-r--r-- | src/mixins/currentUserMixin.js | 9 | ||||
-rw-r--r-- | src/mixins/follow.js | 4 |
2 files changed, 8 insertions, 5 deletions
diff --git a/src/mixins/currentUserMixin.js b/src/mixins/currentUserMixin.js index 8bc5adfa..1678b3f3 100644 --- a/src/mixins/currentUserMixin.js +++ b/src/mixins/currentUserMixin.js @@ -26,13 +26,16 @@ export default { serverData ], computed: { - currentUser: function() { + currentUser() { return OC.getCurrentUser() }, - socialId: function() { + socialId() { + return '@' + this.cloudId + }, + cloudId() { const url = document.createElement('a') url.setAttribute('href', this.serverData.cloudAddress) - return '@' + OC.getCurrentUser().uid + '@' + url.hostname + return this.currentUser.uid + '@' + url.hostname } } } diff --git a/src/mixins/follow.js b/src/mixins/follow.js index 2a9a3aa9..43e5e541 100644 --- a/src/mixins/follow.js +++ b/src/mixins/follow.js @@ -48,7 +48,7 @@ export default { }).catch((error) => { this.followLoading = false OC.Notification.showTemporary(`Failed to follow user ${this.item.account}`) - console.error(`Failed to follow user ${this.item.account}`, error) + console.error(`Failed to follow user ${this.item.account}`, error.response.data) }) }, @@ -63,7 +63,7 @@ export default { }).catch((error) => { this.followLoading = false OC.Notification.showTemporary(`Failed to unfollow user ${this.item.account}`) - console.error(`Failed to unfollow user ${this.item.account}`, error) + console.error(`Failed to unfollow user ${this.item.account}`, error.response.data) }) } } |