rename a mutation

This commit is contained in:
taehoon 2019-08-30 15:55:28 -04:00
parent 9825a857f3
commit 13b80b5c7c
1 changed files with 3 additions and 3 deletions

View File

@ -164,7 +164,7 @@ export const mutations = {
state.currentUser.muteIds.push(muteId)
}
},
setPinned (state, status) {
setPinnedToUser (state, status) {
const user = state.usersObject[status.user.id]
const index = user.pinnedStatusIds.indexOf(status.id)
if (status.pinned && index === -1) {
@ -338,13 +338,13 @@ const users = {
// Reconnect users to statuses
store.commit('setUserForStatus', status)
// Set pinned statuses to user
store.commit('setPinned', status)
store.commit('setPinnedToUser', status)
})
each(compact(map(statuses, 'retweeted_status')), (status) => {
// Reconnect users to retweets
store.commit('setUserForStatus', status)
// Set pinned retweets to user
store.commit('setPinned', status)
store.commit('setPinnedToUser', status)
})
},
addNewNotifications (store, { notifications }) {