summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-11-16 11:13:52 -0800
committerBrion Vibber <brion@pobox.com>2010-11-16 11:13:52 -0800
commit0265cdc1c982ca2bd33ceee7d9d956eda91e9d37 (patch)
treea46d17a86c5fe8e48b530a811c72c2505c4731cb
parent9b9db3b28aa117085385baa264ba6d8bb928cfac (diff)
Ticket 2895: exclude silenced users from popular notice lists
-rw-r--r--lib/popularity.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/popularity.php b/lib/popularity.php
index c5b795b8d..b6987138b 100644
--- a/lib/popularity.php
+++ b/lib/popularity.php
@@ -76,6 +76,7 @@ class Popularity
'notice.rendered,notice.url,notice.created,notice.modified,' .
'notice.reply_to,notice.is_local,notice.source,notice.conversation, ' .
'notice.lat,notice.lon,location_id,location_ns,notice.repeat_of';
+ $qry .= ' HAVING \'silenced\' NOT IN (SELECT role FROM profile_role WHERE profile_id=notice.profile_id)';
$qry .= ' ORDER BY weight DESC';
$offset = $this->offset;