about summary refs log tree commit diff
path: root/app/serializers
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2022-10-09 10:49:51 +0900
committerGitHub <noreply@github.com>2022-10-09 03:49:51 +0200
commite82467ca41f4940add32061ca70214e236cc435f (patch)
tree489877be8e182f6425884ae9f927f2adeea2ddb6 /app/serializers
parent45ebdb72ca1678eb30e6087f61bd019c7ea903f4 (diff)
Remove timeline preview link from nav panel when not signed-in (#19320)
* Remove timeline preview link from nav panel when not signed-in

* Always enable server stats
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/initial_state_serializer.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/serializers/initial_state_serializer.rb b/app/serializers/initial_state_serializer.rb
index 1a49182a8..bec725e1b 100644
--- a/app/serializers/initial_state_serializer.rb
+++ b/app/serializers/initial_state_serializer.rb
@@ -28,6 +28,8 @@ class InitialStateSerializer < ActiveModel::Serializer
       profile_directory: Setting.profile_directory,
       trends: Setting.trends,
       registrations_open: Setting.registrations_mode != 'none' && !Rails.configuration.x.single_user_mode,
+      timeline_preview: Setting.timeline_preview,
+      activity_api_enabled: Setting.activity_api_enabled,
     }
 
     if object.current_account