about summary refs log tree commit diff
path: root/app/serializers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-07-14 03:56:34 +0200
committerGitHub <noreply@github.com>2018-07-14 03:56:34 +0200
commite7091074636c519a5c0bd52c8ef85fa3c5df4656 (patch)
tree332dd394922ca795f69e63e8d7bc6dc62b5b0673 /app/serializers
parent9b75dee31638da942553e60bc47ff9275ba09dad (diff)
Display Mastodon version in footer of web UI (#8013)
Fix #7846
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/initial_state_serializer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/serializers/initial_state_serializer.rb b/app/serializers/initial_state_serializer.rb
index 42d0e4bf3..78b96298c 100644
--- a/app/serializers/initial_state_serializer.rb
+++ b/app/serializers/initial_state_serializer.rb
@@ -14,6 +14,7 @@ class InitialStateSerializer < ActiveModel::Serializer
       domain: Rails.configuration.x.local_domain,
       admin: object.admin&.id&.to_s,
       search_enabled: Chewy.enabled?,
+      version: Mastodon::Version.to_s,
       invites_enabled: Setting.min_invite_role == 'user',
     }