mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-19 13:23:13 +00:00
ff168ef202
* Run rubocop --autocorrect on app/, config/ and lib/, also manually fix some remaining style issues * Run rubocop --autocorrect-all on db/ * Run rubocop --autocorrect-all on `spec/` and fix remaining issues
16 lines
343 B
Ruby
16 lines
343 B
Ruby
# frozen_string_literal: true
|
|
|
|
class REST::MuteSerializer < ActiveModel::Serializer
|
|
include RoutingHelper
|
|
|
|
attributes :id, :account, :target_account, :created_at, :hide_notifications
|
|
|
|
def account
|
|
REST::AccountSerializer.new(object.account)
|
|
end
|
|
|
|
def target_account
|
|
REST::AccountSerializer.new(object.target_account)
|
|
end
|
|
end
|