mirror of
https://github.com/go-gitea/gitea.git
synced 2025-05-28 09:34:45 +02:00
Backport #34324 by @tobiasbp If archive downloads are are disabled using _DISABLE_DOWNLOAD_SOURCE_ARCHIVES_, archive links are still returned by the API. This PR changes the data returned, so the fields _zipball_url_ and _tarball_url_ are omitted if archive downloads have been disabled. Resolve #32159 Co-authored-by: Tobias Balle-Petersen <tobiasbp@gmail.com>