Fetch user from timeline.

This commit is contained in:
Roger Braun 2017-06-12 17:07:10 +02:00
parent 5328aca1ef
commit bbb9a9c93c

View File

@ -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: {