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:
parent
5cf50f0034
commit
d7c37d9369
31 changed files with 294 additions and 186 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue