From 1736947f0e842074492d3b8a54a2090b1aeab67f Mon Sep 17 00:00:00 2001 From: David Lu Date: Fri, 27 May 2016 08:38:35 -0700 Subject: Added BOT in RHS (#3136) Changed BOT to constant --- webapp/components/search_results_item.jsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'webapp/components/search_results_item.jsx') diff --git a/webapp/components/search_results_item.jsx b/webapp/components/search_results_item.jsx index 64413a044..708b148d8 100644 --- a/webapp/components/search_results_item.jsx +++ b/webapp/components/search_results_item.jsx @@ -67,6 +67,12 @@ export default class SearchResultsItem extends React.Component { disableProfilePopover = true; } + let botIndicator; + + if (post.props && post.props.from_webhook) { + botIndicator =
  • {Constants.BOT_NAME}
  • ; + } + return (
    @@ -94,13 +100,14 @@ export default class SearchResultsItem extends React.Component {
      -
    • +
    • + {botIndicator}