diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-02-29 16:29:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-29 16:29:17 +0800 |
commit | 17ae0ed3eef54d96bd179ff7fec0540cf3024748 (patch) | |
tree | a9111282717da16feb83baf352ffb2ee5178ca0d /internal/db/attachment.go | |
parent | d59b0f6ff7ee24d94eaa5ad68173405faea6a81c (diff) |
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
Diffstat (limited to 'internal/db/attachment.go')
-rw-r--r-- | internal/db/attachment.go | 2 |
1 files changed, 1 insertions, 1 deletions
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. |