Browse Source

fixed Repository.url

pull/313/head
“xxq250” 3 years ago
parent
commit
8bf4e9b8d2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/repository.rb

+ 1
- 1
app/models/repository.rb 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


Loading…
Cancel
Save