kopia lustrzana https://github.com/nextcloud/social
Fix account store for entries without actor information
Signed-off-by: Julius Härtl <jus@bitgrid.net>pull/264/head
rodzic
fc8d0f7ab7
commit
90dc46bd2b
|
@ -19,7 +19,6 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
import '@babel/polyfill'
|
||||
|
||||
import Vue from 'vue'
|
||||
import { sync } from 'vuex-router-sync'
|
||||
|
|
|
@ -57,11 +57,13 @@ const mutations = {
|
|||
let users = []
|
||||
for (var index in data) {
|
||||
const actor = data[index].actor_info
|
||||
users.push(actor.id)
|
||||
addAccount(state, {
|
||||
actorId: actor.id,
|
||||
data: actor
|
||||
})
|
||||
if (typeof actor !== 'undefined') {
|
||||
users.push(actor.id)
|
||||
addAccount(state, {
|
||||
actorId: actor.id,
|
||||
data: actor
|
||||
})
|
||||
}
|
||||
}
|
||||
Vue.set(state.accounts[_getActorIdForAccount(account)], 'followingList', users)
|
||||
},
|
||||
|
|
Ładowanie…
Reference in New Issue