diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-05-17 10:52:27 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2019-05-17 23:51:14 +0200 |
commit | 56245a2a7204bb63840e633e923bfd1679c793d9 (patch) | |
tree | 40ea4e3088619b9c87ef7310825872582f8e75a4 /app/serializers | |
parent | dd5bf40b97d42daae855cd05ac13c6efa6cda4f6 (diff) |
Export fallback content type and use it as default in WebUI
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/initial_state_serializer.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/serializers/initial_state_serializer.rb b/app/serializers/initial_state_serializer.rb index 850169af8..d74e56ebc 100644 --- a/app/serializers/initial_state_serializer.rb +++ b/app/serializers/initial_state_serializer.rb @@ -47,6 +47,7 @@ class InitialStateSerializer < ActiveModel::Serializer store[:expand_spoilers] = object.current_account.user.setting_expand_spoilers store[:reduce_motion] = object.current_account.user.setting_reduce_motion store[:is_staff] = object.current_account.user.staff? + store[:default_content_type] = object.current_account.user.setting_default_content_type end store |