mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-24 03:23:48 -05:00
12 lines
264 B
Ruby
12 lines
264 B
Ruby
# frozen_string_literal: true
|
|
|
|
class REST::MuteSerializer < ActiveModel::Serializer
|
|
include RoutingHelper
|
|
|
|
attributes :id, :target_account, :created_at, :hide_notifications
|
|
|
|
def target_account
|
|
REST::AccountSerializer.new(object.target_account)
|
|
end
|
|
end
|