diff options
| author | HJ <spam@hjkos.com> | 2019-01-24 18:05:09 +0000 |
|---|---|---|
| committer | HJ <spam@hjkos.com> | 2019-01-24 18:05:09 +0000 |
| commit | 8b7faa810693e85247a86d3a9fc1190afc33896b (patch) | |
| tree | c22acf93bb417421728da36368bca5d1d6c7eaf5 /src/components/status/status.js | |
| parent | 3492ab66973616bdf0beede3c3b3f05f476c3743 (diff) | |
| parent | 416424d04838bdb174279f2494eaadb7ac7505c1 (diff) | |
Merge branch 'favorites-fixes' into 'develop'
fix reply-to tooltip being somewhat unreliable
See merge request pleroma/pleroma-fe!473
Diffstat (limited to 'src/components/status/status.js')
| -rw-r--r-- | src/components/status/status.js | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index 105a736b..b14a74ec 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -73,6 +73,14 @@ const Status = { return (this.$store.state.config.hideAttachments && !this.inConversation) || (this.$store.state.config.hideAttachmentsInConv && this.inConversation) }, + userProfileLink () { + return this.generateUserProfileLink(this.status.user.id, this.status.user.screen_name) + }, + replyProfileLink () { + if (this.isReply) { + return this.generateUserProfileLink(this.status.in_reply_to_status_id, this.replyToName) + } + }, retweet () { return !!this.statusoid.retweeted_status }, retweeter () { return this.statusoid.user.name }, retweeterHtml () { return this.statusoid.user.name_html }, @@ -119,6 +127,14 @@ const Status = { isReply () { return !!this.status.in_reply_to_status_id }, + replyToName () { + const user = this.$store.state.users.usersObject[this.status.in_reply_to_user_id] + if (user) { + return user.screen_name + } else { + return this.status.in_reply_to_screen_name + } + }, hideReply () { if (this.$store.state.config.replyVisibility === 'all') { return false @@ -277,7 +293,7 @@ const Status = { replyLeave () { this.showPreview = false }, - userProfileLink (id, name) { + generateUserProfileLink (id, name) { return generateProfileLink(id, name, this.$store.state.instance.restrictedNicknames) } }, |
