mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 06:56:01 +08:00
456e40a709
Previously the code would only check if they were *currently* suspended or silenced.
12 lines
179 B
Ruby
12 lines
179 B
Ruby
class PenaltyCountsSerializer < ApplicationSerializer
|
|
attributes :silenced, :suspended
|
|
|
|
def silenced
|
|
object.silenced
|
|
end
|
|
|
|
def suspended
|
|
object.suspended
|
|
end
|
|
end
|