From 2fdb33042a118831de60d96e7138209e973e0d65 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Thu, 10 Nov 2016 09:25:43 -0500 Subject: Load profiles for search results (#4519) --- webapp/components/search_bar.jsx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'webapp/components/search_bar.jsx') diff --git a/webapp/components/search_bar.jsx b/webapp/components/search_bar.jsx index 5cc0e7c23..3ddc192d9 100644 --- a/webapp/components/search_bar.jsx +++ b/webapp/components/search_bar.jsx @@ -13,6 +13,7 @@ import SearchSuggestionList from './suggestion/search_suggestion_list.jsx'; import SearchUserProvider from './suggestion/search_user_provider.jsx'; import * as Utils from 'utils/utils.jsx'; import Constants from 'utils/constants.jsx'; +import {loadProfilesForPosts} from 'actions/post_actions.jsx'; import {FormattedMessage, FormattedHTMLMessage} from 'react-intl'; @@ -129,6 +130,8 @@ export default class SearchBar extends React.Component { results: data, is_mention_search: isMentionSearch }); + + loadProfilesForPosts(data.posts); }, (err) => { this.setState({isSearching: false}); -- cgit v1.2.3-1-g7c22