From 6b29db907c626911dd3c337eb2c32fd932bf7e6e Mon Sep 17 00:00:00 2001 From: Kouhai Date: Fri, 21 Apr 2023 23:49:41 -0700 Subject: [PATCH] th: fix presenter before merge --- lib/mastodon/version.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mastodon/version.rb b/lib/mastodon/version.rb index 2a8b7eb1f9..52d04961f9 100644 --- a/lib/mastodon/version.rb +++ b/lib/mastodon/version.rb @@ -37,7 +37,8 @@ module Mastodon end def source_base_url - ENV.fetch('SOURCE_BASE_URL', "https://gitea.treehouse.systems/#{repository}") + base = ENV['GITHUB_REPOSITORY'] ? 'https://github.com' : 'https://gitea.treehouse.systems' + ENV.fetch('SOURCE_BASE_URL', "#{base}/#{repository}") end # specify git tag or commit hash here