fix loading of user statuses

This commit is contained in:
FloatingGhost 2022-08-09 02:32:58 +01:00
parent fc98eea515
commit 2c868a42c6
2 changed files with 2 additions and 1 deletions

View file

@ -182,6 +182,7 @@ export default {
},
methods: {
capitalizeFirstLetter(str) {
if (!str) return ''
return str.charAt(0).toUpperCase() + str.slice(1)
},
changeStatus(statusId, isSensitive, visibility) {

View file

@ -39,7 +39,7 @@ const userProfile = {
commit('SET_STATUSES_LOADING', true)
fetchUserStatuses(userId, getters.authHost, godmode, getters.token)
.then(statuses => dispatch('SetStatuses', statuses.data))
.then(statuses => dispatch('SetStatuses', statuses.data.activities))
commit('SET_STATUSES_LOADING', false)
},