1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-27 22:38:27 +09:00

Fix filter ID not being a string in REST API (#9303)

This commit is contained in:
Eugen Rochko 2018-11-19 10:37:57 +01:00 committed by GitHub
parent d6b9a62e0a
commit 1d38c9750a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,4 +3,8 @@
class REST::FilterSerializer < ActiveModel::Serializer
attributes :id, :phrase, :context, :whole_word, :expires_at,
:irreversible
def id
object.id.to_s
end
end