diff options
| author | Henry Jameson <me@hjkos.com> | 2018-12-17 19:14:38 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2018-12-17 19:14:38 +0300 |
| commit | 8f255fbad4ee80718da6b2154c410995561729de (patch) | |
| tree | 2adab7e024b0c6ad9e4849b7faa1a940810325a8 /src/modules/statuses.js | |
| parent | eaf065c751610008bf9062cf812085c3016cadbc (diff) | |
Refactor follower/friends out of statuses/timeline into user_profile where it
belongs. Changed display of profile to single panel with tabs.
Diffstat (limited to 'src/modules/statuses.js')
| -rw-r--r-- | src/modules/statuses.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/modules/statuses.js b/src/modules/statuses.js index 8cdd4e28..5bbf5f46 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -14,7 +14,6 @@ const emptyTl = () => ({ loading: false, followers: [], friends: [], - viewing: 'statuses', userId: 0, flushMarker: 0 }) @@ -399,16 +398,6 @@ export const mutations = { setNotificationsSilence (state, { value }) { state.notifications.desktopNotificationSilence = value }, - setProfileView (state, { v }) { - // load followers / friends only when needed - state.timelines['user'].viewing = v - }, - addFriends (state, { friends }) { - state.timelines['user'].friends = friends - }, - addFollowers (state, { followers }) { - state.timelines['user'].followers = followers - }, markNotificationsAsSeen (state) { each(state.notifications.data, (notification) => { notification.seen = true @@ -437,12 +426,6 @@ const statuses = { setNotificationsSilence ({ rootState, commit }, { value }) { commit('setNotificationsSilence', { value }) }, - addFriends ({ rootState, commit }, { friends }) { - commit('addFriends', { friends }) - }, - addFollowers ({ rootState, commit }, { followers }) { - commit('addFollowers', { followers }) - }, deleteStatus ({ rootState, commit }, status) { commit('setDeleted', { status }) apiService.deleteStatus({ id: status.id, credentials: rootState.users.currentUser.credentials }) |
