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

Rename to reflect registering moderation

Renamed to reflect registering moderation setting
instead of actions setting, on which the initial
implementation was based
This commit is contained in:
Leni Kadali 2025-06-17 10:06:09 +03:00
parent 3142997ba3
commit fbfcb1957c

View file

@ -17,10 +17,10 @@ var Moderation = struct {
}
func loadModerationFrom(rootCfg ConfigProvider) error {
sec := rootCfg.Section("actions")
sec := rootCfg.Section("moderation")
err := sec.MapTo(&Moderation)
if err != nil {
return fmt.Errorf("failed to map Actions settings: %v", err)
return fmt.Errorf("failed to map Moderation settings: %v", err)
}
Moderation.RemoveResolvedReportsTimeout = sec.Key("KEEP_RESOLVED_REPORTS_FOR").MustDuration(10 * time.Minute)