FIX: Don't include flags on non-human users

This commit is contained in:
Robin Ward 2017-09-25 16:15:48 -04:00
parent b3ffa19f95
commit 81f2b38b78
1 changed files with 2 additions and 0 deletions

View File

@ -163,6 +163,8 @@ module FlagQuery
.flags .flags
.active .active
.includes(post: [:user, :topic]) .includes(post: [:user, :topic])
.references(:post)
.where("posts.user_id > 0")
.order('post_actions.created_at DESC') .order('post_actions.created_at DESC')
ft_by_id = {} ft_by_id = {}