Skip to content

Commit 5c95f7c

Browse files
authored
fix attachment ENABLED (#4064)
* fix attachment ENABLED * change wrong name on app.ini.sample
1 parent fd274ff commit 5c95f7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

custom/conf/app.ini.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ ENABLE_FEDERATED_AVATAR = false
412412

413413
[attachment]
414414
; Whether attachments are enabled. Defaults to `true`
415-
ENABLE = true
415+
ENABLED = true
416416
; Path for attachments. Defaults to `data/attachments`
417417
PATH = data/attachments
418418
; One or more allowed types, e.g. image/jpeg|image/png

modules/setting/setting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ func NewContext() {
947947
AttachmentAllowedTypes = strings.Replace(sec.Key("ALLOWED_TYPES").MustString("image/jpeg,image/png,application/zip,application/gzip"), "|", ",", -1)
948948
AttachmentMaxSize = sec.Key("MAX_SIZE").MustInt64(4)
949949
AttachmentMaxFiles = sec.Key("MAX_FILES").MustInt(5)
950-
AttachmentEnabled = sec.Key("ENABLE").MustBool(true)
950+
AttachmentEnabled = sec.Key("ENABLED").MustBool(true)
951951

952952
TimeFormatKey := Cfg.Section("time").Key("FORMAT").MustString("RFC1123")
953953
TimeFormat = map[string]string{

0 commit comments

Comments
 (0)