diff options
author | 6543 <6543@obermui.de> | 2020-12-08 04:59:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-08 05:59:19 +0100 |
commit | e39ed0b1d98b312c9986969f77acad404748e004 (patch) | |
tree | acd4a2b6e8b78125799ede123b7975bd31bc1086 /models/repo.go | |
parent | cb24cbc1fc316beffe7845d30c5ab0975e32ddb9 (diff) | |
download | gitea-e39ed0b1d98b312c9986969f77acad404748e004.tar.gz gitea-e39ed0b1d98b312c9986969f77acad404748e004.zip |
[API] return original URL of Repositories (#13885) (#13886)
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go index efdd7049de..5ccb974db8 100644 --- a/models/repo.go +++ b/models/repo.go @@ -426,6 +426,7 @@ func (repo *Repository) innerAPIFormat(e Engine, mode AccessMode, isParent bool) HTMLURL: repo.HTMLURL(), SSHURL: cloneLink.SSH, CloneURL: cloneLink.HTTPS, + OriginalURL: repo.SanitizedOriginalURL(), Website: repo.Website, Stars: repo.NumStars, Forks: repo.NumForks, |