2017-07-08 22:51:05 +10:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class InitialStatePresenter < ActiveModelSerializers::Model
|
2017-08-14 12:53:31 +10:00
|
|
|
attributes :settings, :push_subscription, :token,
|
2022-11-06 04:28:13 +11:00
|
|
|
:current_account, :admin, :owner, :text, :visibility,
|
|
|
|
:disabled_account, :moved_to_account
|
2022-07-05 10:41:40 +10:00
|
|
|
|
|
|
|
def role
|
|
|
|
current_account&.user_role
|
|
|
|
end
|
2017-07-08 22:51:05 +10:00
|
|
|
end
|