FIX: Don't notify or return flags on system users

This commit is contained in:
Robin Ward
2017-05-08 13:13:35 -04:00
parent a7471fe85f
commit 96c59c5b82
4 changed files with 19 additions and 0 deletions

View File

@@ -114,6 +114,7 @@ module FlagQuery
.joins("INNER JOIN posts ON posts.id = post_actions.post_id")
.joins("INNER JOIN topics ON topics.id = posts.topic_id")
.joins("LEFT JOIN users ON users.id = posts.user_id")
.where("posts.user_id > 0")
if filter == "old"
post_actions.where("post_actions.disagreed_at IS NOT NULL OR