Browse Source

Only fetch toplevel posts when searching for hashtags on network page

pull/7354/head
Michael 1 week ago
parent
commit
5d5a10fb9c
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      mod/network.php

+ 2
- 2
mod/network.php View File

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

Loading…
Cancel
Save