瀏覽代碼

Add status authors from search results to store

tusooa 2 年之前
父節點
當前提交
10af092800
共有 1 個文件被更改,包括 1 次插入0 次删除
  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
         })