mirror of
https://github.com/twitter/the-algorithm.git
synced 2025-01-23 17:31:16 +01:00
Merge 7975fcdb8d704a244f1f405253da4ad3fd9dac36 into fb54d8b54984f89f7dba90a18e7c3048421464c3
This commit is contained in:
commit
ad31a172ee
@ -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))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user