about summary refs log tree commit diff
path: root/app/serializers
diff options
context:
space:
mode:
authorSho Kusano <rosylilly@aduca.org>2019-04-21 11:41:34 +0900
committerEugen Rochko <eugen@zeonfederated.com>2019-04-21 04:41:34 +0200
commit3e6c7f3617b99db616142ebcd9f78094d4c6fca3 (patch)
treef412f04b052a9674efd3957ee1a1e2fa8d5f79ad /app/serializers
parent3d70ec470aa99b93e518f7b1e7938687be56748e (diff)
Configrationable repository url (#10600)
* config: Add GITHUB_REPOSITORY for repository name

* config: Add SOURCE_BASE_URL for repository url

* Show source_url and repository name on getting started
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 a7a3d770c..0c9fc625f 100644
--- a/app/serializers/initial_state_serializer.rb
+++ b/app/serializers/initial_state_serializer.rb
@@ -14,6 +14,8 @@ class InitialStateSerializer < ActiveModel::Serializer
       domain: Rails.configuration.x.local_domain,
       admin: object.admin&.id&.to_s,
       search_enabled: Chewy.enabled?,
+      repository: Mastodon::Version.repository,
+      source_url: Mastodon::Version.source_url,
       version: Mastodon::Version.to_s,
       invites_enabled: Setting.min_invite_role == 'user',
       mascot: instance_presenter.mascot&.file&.url,