mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 07:24:11 +08:00
FIX: Don't include flags on non-human users
This commit is contained in:
@ -163,6 +163,8 @@ module FlagQuery
|
||||
.flags
|
||||
.active
|
||||
.includes(post: [:user, :topic])
|
||||
.references(:post)
|
||||
.where("posts.user_id > 0")
|
||||
.order('post_actions.created_at DESC')
|
||||
|
||||
ft_by_id = {}
|
||||
|
Reference in New Issue
Block a user