Change IDs of abuse category types.

This commit is contained in:
floss4good 2025-03-11 23:54:19 +02:00
parent f99434fe69
commit 459fa4668b
No known key found for this signature in database
GPG key ID: 5B948B4F4DAF819D

View file

@ -33,7 +33,7 @@ type (
AbuseCategoryType int //revive:disable-line:exported
// 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 {
Value AbuseCategoryType
TranslationKey string
@ -41,10 +41,10 @@ type (
)
const (
AbuseCategoryTypeSpam AbuseCategoryType = iota + 1 // 1
AbuseCategoryTypeMalware // 2
AbuseCategoryTypeIllegalContent // 3
AbuseCategoryTypeOtherViolations // 4 (Other violations of platform rules)
AbuseCategoryTypeOther AbuseCategoryType = iota + 1 // 1 (Other violations of platform rules)
AbuseCategoryTypeSpam // 2
AbuseCategoryTypeMalware // 3
AbuseCategoryTypeIllegalContent // 4
)
// GetAbuseCategoriesList returns a list of pairs with the available abuse category types
@ -54,7 +54,7 @@ func GetAbuseCategoriesList() []AbuseCategoryItem {
{AbuseCategoryTypeSpam, "moderation.abuse_category.spam"},
{AbuseCategoryTypeMalware, "moderation.abuse_category.malware"},
{AbuseCategoryTypeIllegalContent, "moderation.abuse_category.illegal_content"},
{AbuseCategoryTypeOtherViolations, "moderation.abuse_category.other_violations"},
{AbuseCategoryTypeOther, "moderation.abuse_category.other_violations"},
}
}