aboutsummaryrefslogtreecommitdiff
path: root/src/components/status/status.js
diff options
context:
space:
mode:
authordave <starpumadev@gmail.com>2019-03-15 11:28:33 -0400
committerdave <starpumadev@gmail.com>2019-03-15 11:28:33 -0400
commite5786f32a70190df04e871d44c48fa43c18cfa11 (patch)
tree382ebc7142573fd58a3d92cf27f7f9c7f2395077 /src/components/status/status.js
parent8ade93bb4db60e04e5e63d533401ee79de403e19 (diff)
parent9364964b017154f61072ffa70b08f2ed0c7dcaeb (diff)
#436: merge develop
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 () {