aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-06 02:33:02 -0800
committerFriendika <info@friendika.com>2011-02-06 02:33:02 -0800
commitac3f3a6e9fb46ab608f26d4dfc12ee631e0e453a (patch)
treedf973a35f447f004d914cc452c6b94ccd84f910e /include/items.php
parent073f3720ac3132b950fc0aec6470feb99c5e8b92 (diff)
downloadvolse-hubzilla-ac3f3a6e9fb46ab608f26d4dfc12ee631e0e453a.tar.gz
volse-hubzilla-ac3f3a6e9fb46ab608f26d4dfc12ee631e0e453a.tar.bz2
volse-hubzilla-ac3f3a6e9fb46ab608f26d4dfc12ee631e0e453a.zip
kill orphans
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index 359378ff7..15fd262f4 100644
--- a/include/items.php
+++ b/include/items.php
@@ -144,7 +144,7 @@ function get_feed_for(&$a, $dfrn_id, $owner_nick, $last_update, $direction = 0)
`contact`.`thumb`, `contact`.`dfrn-id`, `contact`.`self`,
`contact`.`id` AS `contact-id`, `contact`.`uid` AS `contact-uid`
FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
- WHERE `item`.`uid` = %d AND `item`.`visible` = 1
+ WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND `item`.`parent` != 0
AND `item`.`wall` = 1 AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0
AND ( `item`.`edited` > '%s' OR `item`.`changed` > '%s' )
$sql_extra