1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-02 01:15:48 +00:00

issue #12450: return original URL in original_url JSON field (#13885)

Co-authored-by: Gitea <gitea@fake.local>
This commit is contained in:
Eric Belhomme 2020-12-07 13:07:48 +01:00 committed by GitHub
parent f74a094fd5
commit 6ddf881245
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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