summaryrefslogtreecommitdiffstats
path: root/services/convert/attachment.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix attachment download bug (#27486) (#27571)Giteabot2023-10-111-9/+1
| | | | | | | | | | | Backport #27486 by @lunny Fix #27204 This PR allows `/<username>/<reponame>/attachments/<uuid>` access with personal access token and also changed attachments API download url to it so it can be download correctly. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* For API attachments, use API URL (#25639)Lunny Xiao2023-07-101-5/+35
| | | | | | | Fix #25257 --------- Co-authored-by: Giteabot <teabot@gitea.io>
* Move `convert` package to services (#22264)KN4CK3R2022-12-291-0/+30
Addition to #22256 The `convert` package relies heavily on different models which is [disallowed by our definition of modules](https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md#design-guideline). This helps to prevent possible import cycles. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>