about summary refs log blame commit diff
path: root/app/presenters/initial_state_presenter.rb
blob: 129ea2a46bd69f016c69d524f9c667147b67c584 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                           
                                                   
                                                         


                              
   
# frozen_string_literal: true

class InitialStatePresenter < ActiveModelSerializers::Model
  attributes :settings, :push_subscription, :token,
             :current_account, :admin, :text, :visibility

  def role
    current_account&.user_role
  end
end