mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-09-12 13:16:55 +00:00
14 lines
238 B
Ruby
14 lines
238 B
Ruby
# frozen_string_literal: true
|
|
|
|
class REST::Admin::TagSerializer < REST::TagSerializer
|
|
attributes :id, :trendable, :usable, :requires_review
|
|
|
|
def id
|
|
object.id.to_s
|
|
end
|
|
|
|
def requires_review
|
|
object.requires_review?
|
|
end
|
|
end
|