This commit is contained in:
Huseyin Gumus 2023-07-17 21:41:51 -05:00 committed by GitHub
commit 129bde0904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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))
}