summaryrefslogtreecommitdiffstats
path: root/models/repo
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-07-10 11:31:19 +0200
committerGitHub <noreply@github.com>2023-07-10 11:31:19 +0200
commit0fd1672ae49a5f69fca7d90336ae75be83a21014 (patch)
tree21b651c5ae3bf4db7434ef44de1ac9b4c7865703 /models/repo
parentFix WORK_DIR for docker (root) image (#25738) (diff)
downloadforgejo-0fd1672ae49a5f69fca7d90336ae75be83a21014.tar.xz
forgejo-0fd1672ae49a5f69fca7d90336ae75be83a21014.zip
For API attachments, use API URL (#25639)
Fix #25257 --------- Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'models/repo')
-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