diff options
author | Eric Belhomme <rico-github@ricozome.net> | 2020-12-07 13:07:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-07 13:07:48 +0100 |
commit | 6ddf881245aed6821e21dca733f9a4b37e47fa70 (patch) | |
tree | fd8fe1ab6fde96b45720bd424d67710fb517135b /modules | |
parent | f74a094fd53bc8e47bf1c824cf2476e1e28e063f (diff) | |
download | gitea-6ddf881245aed6821e21dca733f9a4b37e47fa70.tar.gz gitea-6ddf881245aed6821e21dca733f9a4b37e47fa70.zip |
issue #12450: return original URL in `original_url` JSON field (#13885)
Co-authored-by: Gitea <gitea@fake.local>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/convert/repository.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/convert/repository.go b/modules/convert/repository.go index f2e10447f7..0f470144b4 100644 --- a/modules/convert/repository.go +++ b/modules/convert/repository.go @@ -108,6 +108,7 @@ func innerToRepo(repo *models.Repository, mode models.AccessMode, isParent bool) HTMLURL: repo.HTMLURL(), SSHURL: cloneLink.SSH, CloneURL: cloneLink.HTTPS, + OriginalURL: repo.SanitizedOriginalURL(), Website: repo.Website, Stars: repo.NumStars, Forks: repo.NumForks, |