diff options
| author | Henry Jameson <me@hjkos.com> | 2021-06-08 17:04:57 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2021-06-08 17:14:22 +0300 |
| commit | 963f1679e0b24b36c77f15bb7c8e832583f93d79 (patch) | |
| tree | 778a6b1d2697d1dd624e1d7622a1a2ebc6fe229c /src/components/status | |
| parent | a3b8e7ad9936ec0353e1ac54402a6e7ae2ef62d8 (diff) | |
fix console errors
Diffstat (limited to 'src/components/status')
| -rw-r--r-- | src/components/status/status.js | 5 | ||||
| -rw-r--r-- | src/components/status/status.vue | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index 3954df00..eb0af098 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -139,7 +139,10 @@ const Status = { return this.generateUserProfileLink(this.status.user.id, this.status.user.screen_name) }, replyProfileLink () { - return this.$store.getters.findUser(this.status.in_reply_to_user_id).statusnet_profile_url + if (this.isReply) { + const user = this.$store.getters.findUser(this.status.in_reply_to_user_id) + return user && user.statusnet_profile_url + } }, retweet () { return !!this.statusoid.retweeted_status }, retweeterUser () { return this.statusoid.user }, diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 969e2bc8..d62c6817 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -262,6 +262,8 @@ class="mention-link" :content="replyToName" :url="replyProfileLink" + :userId="status.in_reply_to_user_id" + :userScreenName="status.in_reply_to_screen_name" :first-mention="false" /> <span |
