mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-11 18:22:53 -05:00
This commit is contained in:
parent
68d9dcd425
commit
455a754081
@ -9,4 +9,12 @@ class REST::ReportSerializer < ActiveModel::Serializer
|
||||
def id
|
||||
object.id.to_s
|
||||
end
|
||||
|
||||
def status_ids
|
||||
object&.status_ids&.map(&:to_s)
|
||||
end
|
||||
|
||||
def rule_ids
|
||||
object&.rule_ids&.map(&:to_s)
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user