mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06: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
|