From 0f3d62364b7efaa553c711f2a63852a09b34277c Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Fri, 1 Apr 2016 11:53:49 -0400 Subject: Properly display webhook username/icon in search results --- webapp/components/post.jsx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'webapp/components/post.jsx') diff --git a/webapp/components/post.jsx b/webapp/components/post.jsx index bbf8d9bf6..7294cf163 100644 --- a/webapp/components/post.jsx +++ b/webapp/components/post.jsx @@ -185,18 +185,9 @@ export default class Post extends React.Component { let profilePic = null; if (!this.props.hideProfilePic) { - let src = '/api/v1/users/' + post.user_id + '/image?time=' + timestamp; - if (post.props && post.props.from_webhook && global.window.mm_config.EnablePostIconOverride === 'true') { - if (post.props.override_icon_url) { - src = post.props.override_icon_url; - } else { - src = Constants.DEFAULT_WEBHOOK_LOGO; - } - } - profilePic = ( -- cgit v1.2.3-1-g7c22