mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-03-30 15:19:43 +00:00
When defined within app.ini and the value is true, it will be possible to report abusive content.
15 lines
329 B
Go
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)
|
|
}
|