diff options
| author | HJ <spam@hjkos.com> | 2018-12-18 19:48:05 +0000 |
|---|---|---|
| committer | HJ <spam@hjkos.com> | 2018-12-18 19:48:05 +0000 |
| commit | 562c68a51c9746650fabfc5c641816396439c791 (patch) | |
| tree | 327b6e195cb9820213dd838384353beb22e99f6b /src/modules/statuses.js | |
| parent | f62ff2d894d87c7e9c200687eb2a91bcb111e7e1 (diff) | |
| parent | 81c83566cd8a9bf09b568264e289591c52fbca0d (diff) | |
Merge branch 'user-profile-overhault' into 'develop'
Small refactor for followers/friends, change display to use tabs instead of "leaky brains"
Closes #111
See merge request pleroma/pleroma-fe!427
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 }) |
