diff options
author | ThibG <thib@sitedethib.com> | 2018-05-23 18:54:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-23 18:54:51 +0200 |
commit | 7719fe0df27a59cb7292989688efaa4efc6cbccc (patch) | |
tree | 0ff71321d501cfdb78b1d6405d3c5d71c72154a3 /app/javascript/flavours | |
parent | e4c82e33e41272e16b0eebd595d1eaf5d674eece (diff) | |
parent | 247f55f673d13a1fcac5a14b3c771f5aafc2a73e (diff) |
Merge pull request #505 from ThibG/glitch-soc/features/fetch-relationships-on-search
[Glitch] Fetch relationships for search results in UI
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r-- | app/javascript/flavours/glitch/actions/search.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/actions/search.js b/app/javascript/flavours/glitch/actions/search.js index e86bd848e..13885c600 100644 --- a/app/javascript/flavours/glitch/actions/search.js +++ b/app/javascript/flavours/glitch/actions/search.js @@ -1,4 +1,5 @@ import api from 'flavours/glitch/util/api'; +import { fetchRelationships } from './accounts'; export const SEARCH_CHANGE = 'SEARCH_CHANGE'; export const SEARCH_CLEAR = 'SEARCH_CLEAR'; @@ -38,6 +39,7 @@ export function submitSearch() { }, }).then(response => { dispatch(fetchSearchSuccess(response.data)); + dispatch(fetchRelationships(response.data.accounts.map(item => item.id))); }).catch(error => { dispatch(fetchSearchFail(error)); }); |