th: fix presenter before merge

lolsob-rspec
kouhai dev 2023-04-21 23:49:41 -07:00
parent 4be96df50b
commit 1a5be8312f
1 changed files with 2 additions and 1 deletions

View File

@ -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