This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2017-07-08 05:51:05 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class InitialStatePresenter < ActiveModelSerializers::Model
|
2017-08-13 19:53:31 -07:00
|
|
|
attributes :settings, :push_subscription, :token,
|
2022-11-05 10:28:13 -07:00
|
|
|
:current_account, :admin, :owner, :text, :visibility,
|
|
|
|
:disabled_account, :moved_to_account
|
2022-07-04 17:41:40 -07:00
|
|
|
|
|
|
|
def role
|
|
|
|
current_account&.user_role
|
|
|
|
end
|
2017-07-08 05:51:05 -07:00
|
|
|
end
|