aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_profile
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2019-01-17 21:46:03 +0300
committerHenry Jameson <me@hjkos.com>2019-01-17 21:46:03 +0300
commitcab87744c830e4411ec20c1dcb2d454d657219bc (patch)
treeb9cc4054fda22ffdab706103f29bc404ef66d3e6 /src/components/user_profile
parent0f8baff5a3cd865ca5e2bb420c44d7409a8dec9c (diff)
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.
Diffstat (limited to 'src/components/user_profile')
-rw-r--r--src/components/user_profile/user_profile.js9
1 files changed, 3 insertions, 6 deletions
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
},