mirror of
https://github.com/mastodon/mastodon.git
synced 2024-05-19 10:28:08 +00:00
Apply suggestions from code review
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
This commit is contained in:
parent
a50b871196
commit
31e3cac2c9
|
@ -1,9 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class REST::NotificationGroupSerializer < ActiveModel::Serializer
|
||||
attributes :group_key, :notifications_count, :sample_accounts, :type, :group_key
|
||||
attributes :group_key, :notifications_count, :type
|
||||
|
||||
has_many :sample_accounts, serialized: REST::AccountSerializer
|
||||
has_many :sample_accounts, serializer: REST::AccountSerializer
|
||||
belongs_to :target_status, key: :status, if: :status_type?, serializer: REST::StatusSerializer
|
||||
belongs_to :report, if: :report_type?, serializer: REST::ReportSerializer
|
||||
belongs_to :account_relationship_severance_event, key: :event, if: :relationship_severance_event?, serializer: REST::AccountRelationshipSeveranceEventSerializer
|
||||
|
|
Loading…
Reference in a new issue