Make DTL switchable
This commit is contained in:
parent
65fe554773
commit
6fe51e360a
14 changed files with 46 additions and 19 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
class InitialStateSerializer < ActiveModel::Serializer
|
||||
include RoutingHelper
|
||||
include DtlHelper
|
||||
|
||||
attributes :meta, :compose, :accounts,
|
||||
:media_attachments, :settings,
|
||||
|
@ -35,6 +36,7 @@ class InitialStateSerializer < ActiveModel::Serializer
|
|||
trends_as_landing_page: Setting.trends_as_landing_page,
|
||||
status_page_url: Setting.status_page_url,
|
||||
sso_redirect: sso_redirect,
|
||||
dtl_tag: DTL_ENABLED ? DTL_TAG : nil,
|
||||
}
|
||||
|
||||
if object.current_account
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue