mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: unlisted topics listed in activity stream
This commit is contained in:
parent
cc23bb84d9
commit
81e91f3fd7
1 changed files with 1 additions and 0 deletions
|
@ -295,6 +295,7 @@ SQL
|
||||||
|
|
||||||
unless (guardian.user && guardian.user.id == user_id) || guardian.is_staff?
|
unless (guardian.user && guardian.user.id == user_id) || guardian.is_staff?
|
||||||
builder.where("a.action_type not in (#{BOOKMARK},#{STAR})")
|
builder.where("a.action_type not in (#{BOOKMARK},#{STAR})")
|
||||||
|
builder.where("t.visible")
|
||||||
end
|
end
|
||||||
|
|
||||||
if !guardian.can_see_private_messages?(user_id) || ignore_private_messages
|
if !guardian.can_see_private_messages?(user_id) || ignore_private_messages
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue