Merge branch 'develop' of git.pleroma.social:pleroma/pleroma-fe into feature/custom-theme

This commit is contained in:
shpuld 2017-11-17 02:17:47 +02:00
commit e13c8c3fd2
12 changed files with 132 additions and 70 deletions

View file

@ -57,6 +57,10 @@ const users = {
state: defaultState,
mutations,
actions: {
fetchUser (store, id) {
store.rootState.api.backendInteractor.fetchUser({id})
.then((user) => store.commit('addNewUsers', user))
},
addNewStatuses (store, { statuses }) {
const users = map(statuses, 'user')
const retweetedUsers = compact(map(statuses, 'retweeted_status.user'))