Add feedback_spam as one of the possible reasons for user reports (#21414)

(Technically allows it for ratings too, but unused/undocumented at
 the moment as the plan is to use the old flagging system for those)
This commit is contained in:
Mathieu Pillard 2023-11-09 12:01:33 +01:00 коммит произвёл GitHub
Родитель d865716002
Коммит 3fb5e67ef7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -271,6 +271,7 @@ so reports can be responded to if necessary.
=========================== ================================================================
hateful_violent_deceptive Hateful, violent, deceptive, or other inappropriate content
illegal Violates the law or contains content that violates the law
feedback_spam Spam
other Something else
=========================== ================================================================

Просмотреть файл

@ -121,8 +121,10 @@ class AbuseReport(ModelBase):
),
('OTHER', 127, 'Other'),
)
# Base reasons shared by all on-AMO content using AMO Feedback flow.
REASONS.add_subset(
'CONTENT_REASONS', ('HATEFUL_VIOLENT_DECEPTIVE', 'ILLEGAL', 'OTHER')
'CONTENT_REASONS',
('HATEFUL_VIOLENT_DECEPTIVE', 'ILLEGAL', 'FEEDBACK_SPAM', 'OTHER'),
)
# Those reasons will be reported to Cinder.
REASONS.add_subset(