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.

This commit is contained in:
zotlabs 2017-09-10 16:10:56 -07:00
parent 67024c023a
commit abbf245d14
2 changed files with 3 additions and 2 deletions

View File

@ -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)) {

View File

@ -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') {
/**