]> git.mxchange.org Git - friendica.git/commitdiff
Only fetch toplevel posts when searching for hashtags on network page
authorMichael <heluecht@pirati.ca>
Tue, 9 Jul 2019 05:20:34 +0000 (05:20 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 9 Jul 2019 05:20:34 +0000 (05:20 +0000)
mod/network.php

index 3e19cbce4dd8ae5b24922998f38bdd3d003d3e5e..7354667200d0b1a6d9ab6c728737c3f18353ff08 100644 (file)
@@ -868,10 +868,10 @@ function networkThreadedView(App $a, $update, $parent)
                                (SELECT SUBSTR(`term`, 2) FROM `search` WHERE `uid` = ? AND `term` LIKE '#%') AND `otype` = ? AND `type` = ? AND `uid` = 0) AS `term`
                        ON `item`.`id` = `term`.`oid`
                        STRAIGHT_JOIN `contact` AS `author` ON `author`.`id` = `item`.`author-id`
-                       WHERE `item`.`uid` = 0 AND `item`.$ordering < ? AND `item`.$ordering > ?
+                       WHERE `item`.`uid` = 0 AND `item`.$ordering < ? AND `item`.$ordering > ? AND `item`.`gravity` = ?
                                AND NOT `author`.`hidden` AND NOT `author`.`blocked`" . $sql_tag_nets,
                        local_user(), TERM_OBJ_POST, TERM_HASHTAG,
-                       $top_limit, $bottom_limit);
+                       $top_limit, $bottom_limit, GRAVITY_PARENT);
 
                $data = DBA::toArray($items);