From abbf245d1471f8038843c74541fb2f8a704dc8a4 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 10 Sep 2017 16:10:56 -0700 Subject: remove item_thread_top from simple_update query - we're already fetching distinct(parent) and this prevented comments from displaying after submission when remote-authed. --- Zotlabs/Module/Channel.php | 2 +- Zotlabs/Module/Network.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php index d82ed8e5d..4ffc9ffc6 100644 --- a/Zotlabs/Module/Channel.php +++ b/Zotlabs/Module/Channel.php @@ -194,7 +194,7 @@ class Channel extends \Zotlabs\Web\Controller { $simple_update = ''; if($static && $simple_update) - $simple_update .= " and item_thread_top = 1 and author_xchan = '" . protect_sprintf(get_observer_hash()) . "' "; + $simple_update .= " and author_xchan = '" . protect_sprintf(get_observer_hash()) . "' "; if(($update) && (! $load)) { diff --git a/Zotlabs/Module/Network.php b/Zotlabs/Module/Network.php index db90e235f..2b5584c35 100644 --- a/Zotlabs/Module/Network.php +++ b/Zotlabs/Module/Network.php @@ -478,6 +478,7 @@ class Network extends \Zotlabs\Web\Controller { } else { + // this is an update $r = q("SELECT item.parent AS item_id FROM item left join abook on ( item.owner_xchan = abook.abook_xchan $abook_uids ) @@ -510,7 +511,7 @@ class Network extends \Zotlabs\Web\Controller { else { $items = array(); } - + if($page_mode === 'list') { /** -- cgit v1.2.3