logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe
commit: bbb9a9c93c4ca195eb19fe4dc73ef95968738125
parent: 5328aca1efcdd09089bda9068efca9b940c2f6fa
Author: Roger Braun <roger@rogerbraun.net>
Date:   Mon, 12 Jun 2017 17:07:10 +0200

Fetch user from timeline.

Diffstat:

Msrc/components/user_profile/user_profile.js6+++++-
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 @@ -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: {