2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

Add front end service for staff controls

This commit is contained in:
Robin Ward 2017-09-12 13:04:53 -04:00
parent 5cf50f0034
commit d7c37d9369
31 changed files with 294 additions and 186 deletions

View file

@ -272,7 +272,7 @@ class Topic < ActiveRecord::Base
end
def has_flags?
FlagQuery.flagged_post_actions("active")
FlagQuery.flagged_post_actions(filter: "active")
.where("topics.id" => id)
.exists?
end