diff options
author | friendica <info@friendica.com> | 2012-10-29 20:47:56 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-10-29 20:47:56 -0700 |
commit | f608373d084eea8d34adc48ef50c7392903b51be (patch) | |
tree | 9fea00c3b0e8cc621a751be0954bda506fc3f988 /mod/channel.php | |
parent | 1a6415807ebf9ae859134c99eb64a90d7363747a (diff) | |
download | volse-hubzilla-f608373d084eea8d34adc48ef50c7392903b51be.tar.gz volse-hubzilla-f608373d084eea8d34adc48ef50c7392903b51be.tar.bz2 volse-hubzilla-f608373d084eea8d34adc48ef50c7392903b51be.zip |
fixing broken things again after the latest round of ripping out the yellow slime and replacing it with red slime.
Diffstat (limited to 'mod/channel.php')
-rw-r--r-- | mod/channel.php | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/mod/channel.php b/mod/channel.php index b484f0f60..4fd7a6481 100644 --- a/mod/channel.php +++ b/mod/channel.php @@ -161,14 +161,16 @@ function channel_content(&$a, $update = 0) { if($update) { - $r = q("SELECT distinct(parent) AS `item_id` from item + left join abook on item.author_xchan = abook.abook_xchan WHERE uid = %d AND item_restrict = 0 - AND item_flags & %d + AND (item_flags & %d) + AND ((abook.abook_flags & %d) = 0 or abook.abook_flags is null) $sql_extra ORDER BY created DESC", intval($a->profile['profile_uid']), - intval(ITEM_WALL) + intval(ITEM_WALL|ITEM_UNSEEN|ITEM_THREAD_TOP), + intval(ABOOK_FLAG_BLOCKED) ); } @@ -191,12 +193,15 @@ function channel_content(&$a, $update = 0) { $pager_sql = sprintf(" LIMIT %d, %d ",intval($a->pager['start']), intval($a->pager['itemspage'])); $r = q("SELECT id AS item_id FROM item + left join abook on item.author_xchan = abook.abook_xchan WHERE uid = %d AND item_restrict = 0 - AND item_flags & %d + AND (item_flags & %d) + AND ((abook.abook_flags & %d) = 0 or abook.abook_flags is null) $sql_extra $sql_extra2 ORDER BY created DESC $pager_sql ", intval($a->profile['profile_uid']), - intval(ITEM_WALL|ITEM_THREAD_TOP) + intval(ITEM_WALL|ITEM_THREAD_TOP), + intval(ABOOK_FLAG_BLOCKED) ); |