FIX: unlisted topics listed in activity stream

This commit is contained in:
Sam 2014-10-03 15:37:51 +10:00
parent cc23bb84d9
commit 81e91f3fd7
1 changed files with 1 additions and 0 deletions

View File

@ -295,6 +295,7 @@ SQL
unless (guardian.user && guardian.user.id == user_id) || guardian.is_staff?
builder.where("a.action_type not in (#{BOOKMARK},#{STAR})")
builder.where("t.visible")
end
if !guardian.can_see_private_messages?(user_id) || ignore_private_messages