Quellcode durchsuchen

Merge branch 'tusooa/1175-user-card' into 'develop'

Add status authors from search results to store

Closes #1175

See merge request pleroma/pleroma-fe!1760
HJ vor 2 Jahren
Ursprung
Commit
4d2056d8aa
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      src/modules/statuses.js

+ 1 - 0
src/modules/statuses.js

@@ -765,6 +765,7 @@ const statuses = {
       return store.rootState.api.backendInteractor.search2({ q, resolve, limit, offset, following, type })
         .then((data) => {
           store.commit('addNewUsers', data.accounts)
+          store.commit('addNewUsers', data.statuses.map(s => s.user).filter(u => u))
           store.commit('addNewStatuses', { statuses: data.statuses })
           return data
         })