From bbb9a9c93c4ca195eb19fe4dc73ef95968738125 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Mon, 12 Jun 2017 17:07:10 +0200 Subject: [PATCH] Fetch user from timeline. --- src/components/user_profile/user_profile.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js index 3d4735923f..5f9d4d081b 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: {