th: fix presenter before merge

pull/59/head
kouhai dev 2023-04-21 23:49:41 -07:00
parent c13cde3589
commit 6b29db907c
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,8 @@ module Mastodon
end end
def source_base_url 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 end
# specify git tag or commit hash here # specify git tag or commit hash here