aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_profile/user_profile.js
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-06-12 17:07:10 +0200
committerRoger Braun <roger@rogerbraun.net>2017-06-12 17:07:10 +0200
commitbbb9a9c93c4ca195eb19fe4dc73ef95968738125 (patch)
tree9de953012266891d61debb77e8a6a9b052cfa2cf /src/components/user_profile/user_profile.js
parent5328aca1efcdd09089bda9068efca9b940c2f6fa (diff)
Fetch user from timeline.
Diffstat (limited to 'src/components/user_profile/user_profile.js')
-rw-r--r--src/components/user_profile/user_profile.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js
index 3d473592..5f9d4d08 100644
--- a/src/components/user_profile/user_profile.js
+++ b/src/components/user_profile/user_profile.js
@@ -15,7 +15,11 @@ const UserProfile = {
return this.$route.params.id
},
user () {
- return this.$store.state.users.usersObject[this.userId]
+ if (this.timeline.statuses[0]) {
+ return this.timeline.statuses[0].user
+ } else {
+ return false
+ }
}
},
components: {