Don't do the restriction on thread starters when loading a single thread
This commit is contained in:
parent
efb2b58c47
commit
60d00087f0
1 changed files with 4 additions and 5 deletions
|
@ -768,12 +768,11 @@ function networkThreadedView(App $a, $update, $parent)
|
||||||
if (Config::get("system", "like_no_comment")) {
|
if (Config::get("system", "like_no_comment")) {
|
||||||
$sql_extra4 .= " AND `item`.`verb` = '".ACTIVITY_POST."'";
|
$sql_extra4 .= " AND `item`.`verb` = '".ACTIVITY_POST."'";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ($order === 'post') {
|
if ($order === 'post') {
|
||||||
// Only show toplevel posts when updating posts in this order mode
|
// Only show toplevel posts when updating posts in this order mode
|
||||||
$sql_extra4 .= " AND `item`.`id` = `item`.`parent`";
|
$sql_extra4 .= " AND `item`.`id` = `item`.`parent`";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$r = q("SELECT `item`.`parent-uri` AS `uri`, `item`.`parent` AS `item_id`, $sql_order AS `order_date`
|
$r = q("SELECT `item`.`parent-uri` AS `uri`, `item`.`parent` AS `item_id`, $sql_order AS `order_date`
|
||||||
FROM `item` $sql_post_table
|
FROM `item` $sql_post_table
|
||||||
|
|
Loading…
Reference in a new issue