mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
change count>0 to exists
This commit is contained in:
@@ -243,7 +243,7 @@ class PostSerializer < BasicPostSerializer
|
||||
summary[:can_defer_flags] = true if scope.is_staff? &&
|
||||
PostActionType.flag_types.values.include?(id) &&
|
||||
active_flags.present? && active_flags.has_key?(id) &&
|
||||
active_flags[id].count > 0
|
||||
active_flags[id].exists?
|
||||
end
|
||||
|
||||
if actions.present? && actions.has_key?(id)
|
||||
|
||||
Reference in New Issue
Block a user