From 17ae0ed3eef54d96bd179ff7fec0540cf3024748 Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Sat, 29 Feb 2020 16:29:17 +0800 Subject: conf: overhaul settings (#5953) * Overhaul cache settings * Overhaul HTTP settings * conf: overhaul more settings * log: make LGTM happy * travis: upload report to Codecov * Add codecov.yml --- internal/db/attachment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/db/attachment.go') diff --git a/internal/db/attachment.go b/internal/db/attachment.go index 8d84d8a7..44ac4fe2 100644 --- a/internal/db/attachment.go +++ b/internal/db/attachment.go @@ -44,7 +44,7 @@ func (a *Attachment) AfterSet(colName string, _ xorm.Cell) { // AttachmentLocalPath returns where attachment is stored in local file system based on given UUID. func AttachmentLocalPath(uuid string) string { - return path.Join(conf.AttachmentPath, uuid[0:1], uuid[1:2], uuid) + return path.Join(conf.Attachment.Path, uuid[0:1], uuid[1:2], uuid) } // LocalPath returns where attachment is stored in local file system. -- cgit v1.2.3