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 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"},
} }
} }