From cab87744c830e4411ec20c1dcb2d454d657219bc Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 17 Jan 2019 21:46:03 +0300 Subject: Revert "some initial work to make it possible to use "unregistered" timelines, i.e. not" and some stuff to make favorites still work This reverts commit 039a4074006fb91ac9031b41b4e9af4a15766dfa. --- src/components/user_profile/user_profile.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/components/user_profile/user_profile.js') diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js index 245d55ca..7f17ef69 100644 --- a/src/components/user_profile/user_profile.js +++ b/src/components/user_profile/user_profile.js @@ -1,7 +1,6 @@ import UserCardContent from '../user_card_content/user_card_content.vue' import UserCard from '../user_card/user_card.vue' import Timeline from '../timeline/timeline.vue' -import { emptyTl } from '../../modules/statuses.js' const UserProfile = { created () { @@ -14,15 +13,13 @@ const UserProfile = { destroyed () { this.$store.dispatch('stopFetching', 'user') }, - data () { - return { - favorites: emptyTl({ type: 'favorites', userId: this.userId }) - } - }, computed: { timeline () { return this.$store.state.statuses.timelines.user }, + favorites () { + return this.$store.state.statuses.timelines.favorites + }, userId () { return this.$route.params.id || this.user.id }, -- cgit v1.2.3-70-g09d2