Only fetch toplevel posts when searching for hashtags on network page
This commit is contained in:
parent
5accf11c8d
commit
5d5a10fb9c
|
@ -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`
|
(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`
|
ON `item`.`id` = `term`.`oid`
|
||||||
STRAIGHT_JOIN `contact` AS `author` ON `author`.`id` = `item`.`author-id`
|
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,
|
AND NOT `author`.`hidden` AND NOT `author`.`blocked`" . $sql_tag_nets,
|
||||||
local_user(), TERM_OBJ_POST, TERM_HASHTAG,
|
local_user(), TERM_OBJ_POST, TERM_HASHTAG,
|
||||||
$top_limit, $bottom_limit);
|
$top_limit, $bottom_limit, GRAVITY_PARENT);
|
||||||
|
|
||||||
$data = DBA::toArray($items);
|
$data = DBA::toArray($items);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user