mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-28 18:13:42 +01:00
17 lines
445 B
Ruby
17 lines
445 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class REST::NotificationPolicySerializer < ActiveModel::Serializer
|
||
|
attributes :filter_not_following,
|
||
|
:filter_not_followers,
|
||
|
:filter_new_accounts,
|
||
|
:filter_private_mentions,
|
||
|
:summary
|
||
|
|
||
|
def summary
|
||
|
{
|
||
|
pending_requests_count: object.pending_requests_count.to_s,
|
||
|
pending_notifications_count: object.pending_notifications_count.to_s,
|
||
|
}
|
||
|
end
|
||
|
end
|