mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-26 06:04:46 +00:00
Change IDs of abuse category types.
This commit is contained in:
parent
f99434fe69
commit
459fa4668b
1 changed files with 6 additions and 6 deletions
|
@ -33,7 +33,7 @@ type (
|
||||||
AbuseCategoryType int //revive:disable-line:exported
|
AbuseCategoryType int //revive:disable-line:exported
|
||||||
|
|
||||||
// AbuseCategoryItem defines a pair of value and it's corresponding translation key
|
// AbuseCategoryItem defines a pair of value and it's corresponding translation key
|
||||||
// (used when new reports are submitted).
|
// (used to add options within the dropdown shown when new reports are submitted).
|
||||||
AbuseCategoryItem struct {
|
AbuseCategoryItem struct {
|
||||||
Value AbuseCategoryType
|
Value AbuseCategoryType
|
||||||
TranslationKey string
|
TranslationKey string
|
||||||
|
@ -41,10 +41,10 @@ type (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
AbuseCategoryTypeSpam AbuseCategoryType = iota + 1 // 1
|
AbuseCategoryTypeOther AbuseCategoryType = iota + 1 // 1 (Other violations of platform rules)
|
||||||
AbuseCategoryTypeMalware // 2
|
AbuseCategoryTypeSpam // 2
|
||||||
AbuseCategoryTypeIllegalContent // 3
|
AbuseCategoryTypeMalware // 3
|
||||||
AbuseCategoryTypeOtherViolations // 4 (Other violations of platform rules)
|
AbuseCategoryTypeIllegalContent // 4
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetAbuseCategoriesList returns a list of pairs with the available abuse category types
|
// GetAbuseCategoriesList returns a list of pairs with the available abuse category types
|
||||||
|
@ -54,7 +54,7 @@ func GetAbuseCategoriesList() []AbuseCategoryItem {
|
||||||
{AbuseCategoryTypeSpam, "moderation.abuse_category.spam"},
|
{AbuseCategoryTypeSpam, "moderation.abuse_category.spam"},
|
||||||
{AbuseCategoryTypeMalware, "moderation.abuse_category.malware"},
|
{AbuseCategoryTypeMalware, "moderation.abuse_category.malware"},
|
||||||
{AbuseCategoryTypeIllegalContent, "moderation.abuse_category.illegal_content"},
|
{AbuseCategoryTypeIllegalContent, "moderation.abuse_category.illegal_content"},
|
||||||
{AbuseCategoryTypeOtherViolations, "moderation.abuse_category.other_violations"},
|
{AbuseCategoryTypeOther, "moderation.abuse_category.other_violations"},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue