do not query for parents if $conv and $nouveau are set
This commit is contained in:
parent
ad4e8fd7f5
commit
d3bc50e18d
@ -392,10 +392,16 @@ class Network extends \Zotlabs\Web\Controller {
|
||||
|
||||
if($conv) {
|
||||
$item_thread_top = '';
|
||||
|
||||
if($nouveau) {
|
||||
$sql_extra .= " AND author_xchan = '" . dbesc($channel['channel_hash']) . "' ";
|
||||
}
|
||||
else {
|
||||
$sql_extra .= sprintf(" AND parent IN (SELECT distinct(parent) from item where ( author_xchan = '%s' or item_mentionsme = 1 )) ",
|
||||
dbesc(protect_sprintf($channel['channel_hash']))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if($update && ! $load) {
|
||||
|
||||
|
Reference in New Issue
Block a user