Compare commits

...

2 Commits

Author SHA1 Message Date
Huseyin Gumus
ad31a172ee
Merge 7975fcdb8d into fb54d8b549 2023-05-22 17:40:33 -05:00
Huseyin Gumus
7975fcdb8d
add support for "Spamming" reason
This PR adds the 'Spamming' reason to our code. It helps the system detect and zap spammy posts. Made updates to the code to handle this new reason.
2023-03-31 19:29:06 -07:00

View File

@ -130,6 +130,7 @@ object Reason {
case object LocalLawsWithheld extends Reason
case object HatefulConduct extends Reason
case object AbusiveBehavior extends Reason
case object Spamming extends Reason // Add a new case object for "Spamming"
case object NotSupportedOnDevice extends Reason
@ -190,6 +191,7 @@ object Reason {
reason match {
case HatefulConduct => Some(AppealableReason.HatefulConduct(violationLevel.level))
case AbusiveBehavior => Some(AppealableReason.AbusiveBehavior(violationLevel.level))
case Spamming => Some(AppealableReason.Spamming(violationLevel.level)) // New case for handling Spamming
case _ => Some(AppealableReason.Unspecified(violationLevel.level))
}