]> git.mxchange.org Git - friendica.git/commitdiff
Don't do the restriction on thread starters when loading a single thread
authorMichael <heluecht@pirati.ca>
Wed, 28 Feb 2018 06:36:41 +0000 (06:36 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 28 Feb 2018 06:36:41 +0000 (06:36 +0000)
mod/network.php

index 5c69d9891ebc8d34e26675a7511f8717c67b042f..8cd2e279397ac4c43ae928cdcff5a74a3c0c6412 100644 (file)
@@ -768,11 +768,10 @@ function networkThreadedView(App $a, $update, $parent)
                        if (Config::get("system", "like_no_comment")) {
                                $sql_extra4 .= " AND `item`.`verb` = '".ACTIVITY_POST."'";
                        }
-               }
-
-               if ($order === 'post') {
-                       // Only show toplevel posts when updating posts in this order mode
-                       $sql_extra4 .= " AND `item`.`id` = `item`.`parent`";
+                       if ($order === 'post') {
+                               // Only show toplevel posts when updating posts in this order mode
+                               $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`