diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-02-22 09:05:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-22 09:05:26 +0800 |
commit | 648d9e253c1924b832248f26fee42b2fb64dc3bc (patch) | |
tree | 51649fad974cd7284a47d30e412c90e7ab72cd2c /internal/db/attachment.go | |
parent | 5b14cc6f0b7b661beb2640a94bd15660cdb48587 (diff) |
conf: overhaul server settings (#5928)
* conf: rename package
* Requires Go 1.12
* Fix lint
* Fix lint
* Overhaul
* db: fix tests
* Save my work
* Fix tests
* Server.UnixSocketPermission
* Server.LocalRootURL
* SSH settings
* Server.OfflineMode
* Save my work
* App.Version
* Remove [server] STATIC_ROOT_PATH
* Server.LandingURL
Diffstat (limited to 'internal/db/attachment.go')
-rw-r--r-- | internal/db/attachment.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/attachment.go b/internal/db/attachment.go index 1494002d..8d84d8a7 100644 --- a/internal/db/attachment.go +++ b/internal/db/attachment.go @@ -15,7 +15,7 @@ import ( gouuid "github.com/satori/go.uuid" "xorm.io/xorm" - "gogs.io/gogs/internal/setting" + "gogs.io/gogs/internal/conf" ) // Attachment represent a attachment of issue/comment/release. @@ -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(setting.AttachmentPath, uuid[0:1], uuid[1:2], uuid) + return path.Join(conf.AttachmentPath, uuid[0:1], uuid[1:2], uuid) } // LocalPath returns where attachment is stored in local file system. |