1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-27 13:39:19 -05: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,