From d41556a1ea45fe3ef86f6d9d129c8b0d98ee3f2f Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 9 May 2018 18:20:28 -0700 Subject: minor regression on date queries from channel page --- Zotlabs/Module/Channel.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php index 2ed40047b..9ce57d6eb 100644 --- a/Zotlabs/Module/Channel.php +++ b/Zotlabs/Module/Channel.php @@ -248,6 +248,9 @@ class Channel extends \Zotlabs\Web\Controller { $sql_extra2 .= protect_sprintf(sprintf(" AND item.created >= '%s' ", dbesc(datetime_convert(date_default_timezone_get(),'',$datequery2)))); } + if($datequery || $datequery2) { + $sql_extra2 .= " and item.item_thread_top != 0 "; + } $itemspage = get_pconfig(local_channel(),'system','itemspage'); \App::set_pager_itemspage(((intval($itemspage)) ? $itemspage : 20)); -- cgit v1.2.3