about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-04-22 20:40:04 +0200
committerThibaut Girka <thib@sitedethib.com>2019-04-22 20:40:04 +0200
commita9eaa780f56d9b10cc7ae9e8134a612cbc96b4f8 (patch)
treed41dfb47bc842666ffadc4cb39f0dc9ed22af4fb /lib
parentc3fa4e8e07e5bcc685163959833a989fb15e8029 (diff)
parentfd9f5a467f9af857338380bf78b6b7037a12f171 (diff)
Merge branch 'master' into glitch-soc/merge-upstream
Conflicts:
- app/javascript/mastodon/features/compose/components/compose_form.js
  Upstream cleaned up a bit, including on lines in which
  we replaced the hardcoded 500 character limit with a maxChar
  constant. Applied the changes while keeping maxChar instead of 500.
- app/javascript/packs/public.js
  Moved upstream's new animated avatar hover handling in
  app/javascript/core/public.js
- app/javascript/styles/fonts/montserrat.scss
  Upstream fixed local font name, applied those changes.
- app/javascript/styles/fonts/roboto.scss
  Upstream fixed local font name, applied those changes.
- lib/mastodon/version.rb
  Upstream made repo URL configurable, did the same, but
  default to glitch-soc
Diffstat (limited to 'lib')
-rw-r--r--lib/mastodon/version.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mastodon/version.rb b/lib/mastodon/version.rb
index 5d1b8e6d9..8172aeb94 100644
--- a/lib/mastodon/version.rb
+++ b/lib/mastodon/version.rb
@@ -37,11 +37,11 @@ module Mastodon
     end
 
     def repository
-      'glitch-soc/mastodon'
+      ENV.fetch('GITHUB_REPOSITORY') { 'glitch-soc/mastodon' }
     end
 
     def source_base_url
-      "https://github.com/#{repository}"
+      ENV.fetch('SOURCE_BASE_URL') { "https://github.com/#{repository}" }
     end
 
     # specify git tag or commit hash here