1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Fix missing cast of status and rule IDs to string (fix #19048) (#20122)

This commit is contained in:
trwnh 2022-11-08 09:37:41 -06:00 committed by GitHub
parent 68d9dcd425
commit 455a754081
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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