Let the front-end know the current account is a moderator

This commit is contained in:
Thibaut Girka
2018-08-31 12:10:38 +02:00
committed by ThibG
parent b3fdd166e8
commit 6ad7dac791
2 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,7 @@ class InitialStateSerializer < ActiveModel::Serializer
store[:auto_play_gif] = object.current_account.user.setting_auto_play_gif
store[:display_sensitive_media] = object.current_account.user.setting_display_sensitive_media
store[:reduce_motion] = object.current_account.user.setting_reduce_motion
store[:is_staff] = object.current_account.user.staff?
end
store