FEATURE: Track how many user flags are agreed/disagreed/ignored

Display the percentage when reviewing flags.
This commit is contained in:
Robin Ward
2018-10-31 15:35:07 -04:00
parent ceafcbc898
commit ec91450aae
13 changed files with 183 additions and 20 deletions

View File

@@ -206,7 +206,7 @@ module FlagQuery
results = PostAction
.flags
.active
.includes(post: [:user, :topic])
.includes(post: [{ user: :user_stat }, :topic])
.references(:post)
.where("posts.user_id > 0")
.order('post_actions.created_at DESC')