FIX: unlisted topics listed in activity stream
This commit is contained in:
parent
cc23bb84d9
commit
81e91f3fd7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue