Skip to content

Commit 7673ca9

Browse files
authored
fix attachment ENABLED (#4064) (#4066)
* fix attachment ENABLED * change wrong name on app.ini.sample
1 parent 2d0db24 commit 7673ca9

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
@@ -403,7 +403,7 @@ ENABLE_FEDERATED_AVATAR = false
403403

404404
[attachment]
405405
; Whether attachments are enabled. Defaults to `true`
406-
ENABLE = true
406+
ENABLED = true
407407
; Path for attachments. Defaults to `data/attachments`
408408
PATH = data/attachments
409409
; 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
@@ -956,7 +956,7 @@ func NewContext() {
956956
AttachmentAllowedTypes = strings.Replace(sec.Key("ALLOWED_TYPES").MustString("image/jpeg,image/png,application/zip,application/gzip"), "|", ",", -1)
957957
AttachmentMaxSize = sec.Key("MAX_SIZE").MustInt64(4)
958958
AttachmentMaxFiles = sec.Key("MAX_FILES").MustInt(5)
959-
AttachmentEnabled = sec.Key("ENABLE").MustBool(true)
959+
AttachmentEnabled = sec.Key("ENABLED").MustBool(true)
960960

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

0 commit comments

Comments
 (0)