kopia lustrzana https://github.com/nextcloud/social
rodzic
21604e11d7
commit
89472dc5ad
|
@ -30,7 +30,14 @@ const state = {
|
|||
accountIdMap: {},
|
||||
}
|
||||
const addAccount = (state, { actorId, data }) => {
|
||||
Vue.set(state.accounts, actorId, Object.assign({ followersList: [], followingList: [], details: { following: false, follower: false } }, state.accounts[actorId], data))
|
||||
Vue.set(state.accounts, actorId, Object.assign({
|
||||
followersList: [],
|
||||
followingList: [],
|
||||
details: {
|
||||
following: false,
|
||||
follower: false,
|
||||
}
|
||||
}, state.accounts[actorId], data))
|
||||
Vue.set(state.accountIdMap, data.account, data.id)
|
||||
}
|
||||
const _getActorIdForAccount = (account) => state.accountIdMap[account]
|
||||
|
|
Ładowanie…
Reference in New Issue