1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-09-15 18:56:59 +00:00

Forgot to rename setting as per app.example.ini

See the commit (web) which introduced the name change
https://codeberg.org/forgejo/forgejo/pulls/7940/commits/33ac0de26347a05d47d63becabdf21da54a8700d
This commit is contained in:
Leni Kadali 2025-06-16 21:32:01 +03:00
parent a40422ab99
commit 3142997ba3

View file

@ -11,7 +11,7 @@ import (
// Moderation settings // Moderation settings
var Moderation = struct { var Moderation = struct {
Enabled bool `ini:"ENABLED"` Enabled bool `ini:"ENABLED"`
RemoveResolvedReportsTimeout time.Duration `ini:"REMOVE_RESOLVED_REPORTS_TIMEOUT"` RemoveResolvedReportsTimeout time.Duration `ini:"KEEP_RESOLVED_REPORTS_FOR"`
}{ }{
Enabled: false, Enabled: false,
} }
@ -23,6 +23,6 @@ func loadModerationFrom(rootCfg ConfigProvider) error {
return fmt.Errorf("failed to map Actions settings: %v", err) return fmt.Errorf("failed to map Actions settings: %v", err)
} }
Moderation.RemoveResolvedReportsTimeout = sec.Key("REMOVE_RESOLVED_REPORTS_TIMEOUT").MustDuration(10 * time.Minute) Moderation.RemoveResolvedReportsTimeout = sec.Key("KEEP_RESOLVED_REPORTS_FOR").MustDuration(10 * time.Minute)
return nil return nil
} }