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:
parent
3142997ba3
commit
fbfcb1957c
1 changed files with 2 additions and 2 deletions
|
@ -17,10 +17,10 @@ var Moderation = struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func loadModerationFrom(rootCfg ConfigProvider) error {
|
func loadModerationFrom(rootCfg ConfigProvider) error {
|
||||||
sec := rootCfg.Section("actions")
|
sec := rootCfg.Section("moderation")
|
||||||
err := sec.MapTo(&Moderation)
|
err := sec.MapTo(&Moderation)
|
||||||
if err != nil {
|
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)
|
Moderation.RemoveResolvedReportsTimeout = sec.Key("KEEP_RESOLVED_REPORTS_FOR").MustDuration(10 * time.Minute)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue