forgejo/modules/setting/moderation.go
floss4good 3afae67e11
Introduce new [moderation] ENABLED config (default false).
When defined within app.ini and the value is true, it will be possible to report abusive content.
2025-03-09 22:57:47 +02:00

15 lines
329 B
Go

// Copyright 2025 The Forgejo Authors. All rights reserved.
// SPDX-License-Identifier: GPL-3.0-or-later
package setting
// Moderation settings
var Moderation = struct {
Enabled bool `ini:"ENABLED"`
}{
Enabled: false,
}
func loadModerationFrom(rootCfg ConfigProvider) {
mustMapSetting(rootCfg, "moderation", &Moderation)
}