From c1b4a6f03442947ec20ad9971ed90c9dbe19869a Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Mon, 26 Oct 2020 01:08:31 -0500 Subject: [PATCH] Updated status search functionality, Added search/statuses route MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Updated: - status search functionality • Added: - search/statuses route --- app/javascript/gabsocial/features/search.js | 10 +++++----- app/javascript/gabsocial/features/ui/ui.js | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/javascript/gabsocial/features/search.js b/app/javascript/gabsocial/features/search.js index 1e3dd8c7..1acf08bc 100644 --- a/app/javascript/gabsocial/features/search.js +++ b/app/javascript/gabsocial/features/search.js @@ -132,7 +132,7 @@ class Search extends ImmutablePureComponent { ) } - + if (results.get('statuses') && results.get('statuses').size > 0 && me && (isTop || showStatuses)) { const size = isTop ? Math.min(results.get('statuses').size, theLimit) : results.get('statuses').size; const isMax = size === results.get('statuses').size @@ -152,10 +152,10 @@ class Search extends ImmutablePureComponent { { - results.get('statuses').slice(0, size).map((status) => ( - ( + diff --git a/app/javascript/gabsocial/features/ui/ui.js b/app/javascript/gabsocial/features/ui/ui.js index 4a8f8c39..3716ceaa 100644 --- a/app/javascript/gabsocial/features/ui/ui.js +++ b/app/javascript/gabsocial/features/ui/ui.js @@ -229,6 +229,7 @@ class SwitchingArea extends React.PureComponent { +