aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-07-10 08:56:16 -0400
committerGitHub <noreply@github.com>2023-07-10 12:56:16 +0000
commit2b79d3fd520c4f8f9d9e61894f3fcca6c2258efe (patch)
tree9ba8d52ed7a149a7ff51af9874a5850d2427a4c7 /models
parentb4460cf54147e22c3f0657fbfdb680aec52a0210 (diff)
downloadgitea-2b79d3fd520c4f8f9d9e61894f3fcca6c2258efe.tar.gz
gitea-2b79d3fd520c4f8f9d9e61894f3fcca6c2258efe.zip
For API attachments, use API URL (#25639) (#25814)
Backport #25639 by @lunny Fix #25257 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'models')
-rw-r--r--models/repo/attachment.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/models/repo/attachment.go b/models/repo/attachment.go
index 93b83aae8a..df3b9cd213 100644
--- a/models/repo/attachment.go
+++ b/models/repo/attachment.go
@@ -65,13 +65,6 @@ func (a *Attachment) DownloadURL() string {
return setting.AppURL + "attachments/" + url.PathEscape(a.UUID)
}
-// _____ __ __ .__ __
-// / _ \_/ |__/ |______ ____ | |__ _____ ____ _____/ |_
-// / /_\ \ __\ __\__ \ _/ ___\| | \ / \_/ __ \ / \ __\
-// / | \ | | | / __ \\ \___| Y \ Y Y \ ___/| | \ |
-// \____|__ /__| |__| (____ /\___ >___| /__|_| /\___ >___| /__|
-// \/ \/ \/ \/ \/ \/ \/
-
// ErrAttachmentNotExist represents a "AttachmentNotExist" kind of error.
type ErrAttachmentNotExist struct {
ID int64