From ff5f5095dfa16933cac91a58142a4541b1db010b Mon Sep 17 00:00:00 2001 From: shpuld Date: Sun, 27 Jan 2019 11:31:23 +0200 Subject: [PATCH] Fix replies to deleted posts/users pushing vue warnings --- src/components/status/status.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/status/status.js b/src/components/status/status.js index b14a74ec..b52071d8 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -74,6 +74,9 @@ const Status = { (this.$store.state.config.hideAttachmentsInConv && this.inConversation) }, userProfileLink () { + if (this.status.user.screen_name === null) { + console.log(this.status.user) + } return this.generateUserProfileLink(this.status.user.id, this.status.user.screen_name) }, replyProfileLink () { @@ -125,7 +128,7 @@ const Status = { return lengthScore > 20 }, isReply () { - return !!this.status.in_reply_to_status_id + 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] @@ -294,6 +297,9 @@ const Status = { this.showPreview = false }, generateUserProfileLink (id, name) { + if (!name) { + console.log(id, name) + } return generateProfileLink(id, name, this.$store.state.instance.restrictedNicknames) } },