mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add front end service for staff controls
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user