mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 11:46:18 +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
|