From 648d9e253c1924b832248f26fee42b2fb64dc3bc Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Sat, 22 Feb 2020 09:05:26 +0800 Subject: 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 --- internal/db/attachment.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/db/attachment.go') 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. -- cgit v1.2.3