aboutsummaryrefslogtreecommitdiff
path: root/src/components/status/status.js
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2019-03-23 22:21:57 +0200
committershpuld <shp@cock.li>2019-03-23 22:21:57 +0200
commitfd12263cacd2a869ad61dd8580f918b45d9b2a51 (patch)
treec70c4e548923d97893ab6a875cc354cd6895f8e8 /src/components/status/status.js
parent85584021fb1042a8934945d73f7d25b38f1c29d1 (diff)
parentf86a5dc80421f496a893efaa98f12f831da0adcb (diff)
merge develop in
Diffstat (limited to 'src/components/status/status.js')
-rw-r--r--src/components/status/status.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index 9e18fe15..c90da6d4 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -145,11 +145,11 @@ const Status = {
return !!(this.status.in_reply_to_status_id && this.status.in_reply_to_user_id)
},
replyToName () {
- const user = this.$store.state.users.usersObject[this.status.in_reply_to_user_id]
- if (user) {
- return user.screen_name
- } else {
+ if (this.status.in_reply_to_screen_name) {
return this.status.in_reply_to_screen_name
+ } else {
+ const user = this.$store.getters.findUser(this.status.in_reply_to_user_id)
+ return user && user.screen_name
}
},
hideReply () {