fixed Repository.url

This commit is contained in:
“xxq250” 2022-08-02 18:10:01 +08:00
parent 096b0b954d
commit 8bf4e9b8d2
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class Repository < ApplicationRecord
end
def url
self['url'].blank? ? "#{Gitea.gitea_config[:domain]}/#{self.owner&.login}/#{self.identifier}.git" : self['url']
self['url'].blank? ? "#{GiteaService.gitea_config[:domain]}/#{self.owner&.login}/#{self.identifier}.git" : self['url']
end
# with repository is mirror