From ed570757b04a4bfd99d9c1f266244b6ba9a975c8 Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 8 Apr 2023 11:00:36 -0400 Subject: [PATCH 1/3] removed `misinfo crisis` --- .../visibility/models/TweetSafetyLabel.scala | 3 --- .../scala/com/twitter/visibility/rules/Action.scala | 1 - .../visibility/rules/PublicInterestRules.scala | 13 ------------- 3 files changed, 17 deletions(-) diff --git a/visibilitylib/src/main/scala/com/twitter/visibility/models/TweetSafetyLabel.scala b/visibilitylib/src/main/scala/com/twitter/visibility/models/TweetSafetyLabel.scala index b830eb5e2..043c15282 100644 --- a/visibilitylib/src/main/scala/com/twitter/visibility/models/TweetSafetyLabel.scala +++ b/visibilitylib/src/main/scala/com/twitter/visibility/models/TweetSafetyLabel.scala @@ -83,7 +83,6 @@ object TweetSafetyLabelType extends SafetyLabelType { s.SafetyLabelType.LowQuality -> LowQuality, s.SafetyLabelType.LowQualityMention -> LowQualityMention, s.SafetyLabelType.MisinfoCivic -> MisinfoCivic, - s.SafetyLabelType.MisinfoCrisis -> MisinfoCrisis, s.SafetyLabelType.MisinfoGeneric -> MisinfoGeneric, s.SafetyLabelType.MisinfoMedical -> MisinfoMedical, s.SafetyLabelType.NsfaHighPrecision -> NsfaHighPrecision, @@ -100,7 +99,6 @@ object TweetSafetyLabelType extends SafetyLabelType { s.SafetyLabelType.Pdna -> Pdna, s.SafetyLabelType.RecommendationsLowQuality -> RecommendationsLowQuality, s.SafetyLabelType.RitoActionedTweet -> RitoActionedTweet, - s.SafetyLabelType.SafetyCrisis -> SafetyCrisis, s.SafetyLabelType.SearchBlacklist -> SearchBlacklist, s.SafetyLabelType.SearchBlacklistHighRecall -> SearchBlacklistHighRecall, s.SafetyLabelType.SemanticCoreMisinformation -> SemanticCoreMisinformation, @@ -249,7 +247,6 @@ object TweetSafetyLabelType extends SafetyLabelType { case object HighProactiveTosScore extends TweetSafetyLabelType case object SafetyCrisis extends TweetSafetyLabelType case object MisinfoCivic extends TweetSafetyLabelType - case object MisinfoCrisis extends TweetSafetyLabelType case object MisinfoGeneric extends TweetSafetyLabelType case object MisinfoMedical extends TweetSafetyLabelType case object AdsManagerDenyList extends TweetSafetyLabelType diff --git a/visibilitylib/src/main/scala/com/twitter/visibility/rules/Action.scala b/visibilitylib/src/main/scala/com/twitter/visibility/rules/Action.scala index 47446832a..11124ee12 100644 --- a/visibilitylib/src/main/scala/com/twitter/visibility/rules/Action.scala +++ b/visibilitylib/src/main/scala/com/twitter/visibility/rules/Action.scala @@ -112,7 +112,6 @@ object Reason { case object FirstPageSearchResult extends Reason case object MisinfoCivic extends Reason - case object MisinfoCrisis extends Reason case object MisinfoGeneric extends Reason case object MisinfoMedical extends Reason case object Misleading extends Reason diff --git a/visibilitylib/src/main/scala/com/twitter/visibility/rules/PublicInterestRules.scala b/visibilitylib/src/main/scala/com/twitter/visibility/rules/PublicInterestRules.scala index 047e349ae..266a60853 100644 --- a/visibilitylib/src/main/scala/com/twitter/visibility/rules/PublicInterestRules.scala +++ b/visibilitylib/src/main/scala/com/twitter/visibility/rules/PublicInterestRules.scala @@ -51,7 +51,6 @@ object PublicInterest { PolicyInViolation.Scam -> Scams, PolicyInViolation.PlatformManipulation -> PlatformManipulation, PolicyInViolation.MisinformationCivic -> MisinfoCivic, - PolicyInViolation.AbusePolicyUkraineCrisisMisinformation -> MisinfoCrisis, PolicyInViolation.MisinformationGeneric -> MisinfoGeneric, PolicyInViolation.MisinformationMedical -> MisinfoMedical, ) @@ -76,7 +75,6 @@ object PublicInterest { Scams -> PolicyInViolation.Scam, PlatformManipulation -> PolicyInViolation.PlatformManipulation, MisinfoCivic -> PolicyInViolation.MisinformationCivic, - MisinfoCrisis -> PolicyInViolation.AbusePolicyUkraineCrisisMisinformation, MisinfoGeneric -> PolicyInViolation.MisinformationGeneric, MisinfoMedical -> PolicyInViolation.MisinformationMedical, ) @@ -101,7 +99,6 @@ object PublicInterest { Scams -> SafetyResultReason.Scams, PlatformManipulation -> SafetyResultReason.PlatformManipulation, MisinfoCivic -> SafetyResultReason.MisinfoCivic, - MisinfoCrisis -> SafetyResultReason.MisinfoCrisis, MisinfoGeneric -> SafetyResultReason.MisinfoGeneric, MisinfoMedical -> SafetyResultReason.MisinfoMedical, IpiDevelopmentOnly -> SafetyResultReason.DevelopmentOnlyPublicInterest @@ -118,7 +115,6 @@ object PublicInterest { TweetSafetyLabelType.MisinfoCivic, TweetSafetyLabelType.MisinfoGeneric, TweetSafetyLabelType.MisinfoMedical, - TweetSafetyLabelType.MisinfoCrisis, TweetSafetyLabelType.IpiDevelopmentOnly ) @@ -173,9 +169,6 @@ class PublicInterestActionBuilder[T <: Action]() extends ActionBuilder[T] { case Some((TweetSafetyLabelType.MisinfoCivic, source)) => (Reason.MisinfoCivic, LimitedEngagementReason.fromString(source.map(_.name))) - case Some((TweetSafetyLabelType.MisinfoCrisis, source)) => - (Reason.MisinfoCrisis, LimitedEngagementReason.fromString(source.map(_.name))) - case Some((TweetSafetyLabelType.MisinfoGeneric, source)) => (Reason.MisinfoGeneric, LimitedEngagementReason.fromString(source.map(_.name))) @@ -220,9 +213,6 @@ class PublicInterestComplianceTweetNoticeActionBuilder case Some((TweetSafetyLabelType.MisinfoCivic, _)) => Reason.MisinfoCivic - case Some((TweetSafetyLabelType.MisinfoCrisis, _)) => - Reason.MisinfoCrisis - case Some((TweetSafetyLabelType.MisinfoGeneric, _)) => Reason.MisinfoGeneric @@ -257,9 +247,6 @@ class PublicInterestDropActionBuilder extends ActionBuilder[Drop] { case Some(TweetSafetyLabelType.MisinfoCivic) => Reason.MisinfoCivic - case Some(TweetSafetyLabelType.MisinfoCrisis) => - Reason.MisinfoCrisis - case Some(TweetSafetyLabelType.MisinfoGeneric) => Reason.MisinfoGeneric From 243b43b7b5de099a04734656f6e77664846ba7f1 Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 8 Apr 2023 11:10:33 -0400 Subject: [PATCH 2/3] added `misinfo war` --- .../twitter/visibility/models/TweetSafetyLabel.scala | 2 ++ .../scala/com/twitter/visibility/rules/Action.scala | 1 + .../visibility/rules/PublicInterestRules.scala | 12 ++++++++++++ 3 files changed, 15 insertions(+) diff --git a/visibilitylib/src/main/scala/com/twitter/visibility/models/TweetSafetyLabel.scala b/visibilitylib/src/main/scala/com/twitter/visibility/models/TweetSafetyLabel.scala index 043c15282..9d2bb694b 100644 --- a/visibilitylib/src/main/scala/com/twitter/visibility/models/TweetSafetyLabel.scala +++ b/visibilitylib/src/main/scala/com/twitter/visibility/models/TweetSafetyLabel.scala @@ -85,6 +85,7 @@ object TweetSafetyLabelType extends SafetyLabelType { s.SafetyLabelType.MisinfoCivic -> MisinfoCivic, s.SafetyLabelType.MisinfoGeneric -> MisinfoGeneric, s.SafetyLabelType.MisinfoMedical -> MisinfoMedical, + s.SafetyLabelType.MisinfoWar -> MisinfoWar, s.SafetyLabelType.NsfaHighPrecision -> NsfaHighPrecision, s.SafetyLabelType.NsfaHighRecall -> NsfaHighRecall, s.SafetyLabelType.NsfwCardImage -> NsfwCardImage, @@ -99,6 +100,7 @@ object TweetSafetyLabelType extends SafetyLabelType { s.SafetyLabelType.Pdna -> Pdna, s.SafetyLabelType.RecommendationsLowQuality -> RecommendationsLowQuality, s.SafetyLabelType.RitoActionedTweet -> RitoActionedTweet, + s.SafetyLabelType.SafetyCrisis -> SafetyCrisis, s.SafetyLabelType.SearchBlacklist -> SearchBlacklist, s.SafetyLabelType.SearchBlacklistHighRecall -> SearchBlacklistHighRecall, s.SafetyLabelType.SemanticCoreMisinformation -> SemanticCoreMisinformation, diff --git a/visibilitylib/src/main/scala/com/twitter/visibility/rules/Action.scala b/visibilitylib/src/main/scala/com/twitter/visibility/rules/Action.scala index 11124ee12..e4b125085 100644 --- a/visibilitylib/src/main/scala/com/twitter/visibility/rules/Action.scala +++ b/visibilitylib/src/main/scala/com/twitter/visibility/rules/Action.scala @@ -114,6 +114,7 @@ object Reason { case object MisinfoCivic extends Reason case object MisinfoGeneric extends Reason case object MisinfoMedical extends Reason + case object MisinfoWar extends Reason case object Misleading extends Reason case object ExclusiveTweet extends Reason case object CommunityNotAMember extends Reason diff --git a/visibilitylib/src/main/scala/com/twitter/visibility/rules/PublicInterestRules.scala b/visibilitylib/src/main/scala/com/twitter/visibility/rules/PublicInterestRules.scala index 266a60853..09c79fb28 100644 --- a/visibilitylib/src/main/scala/com/twitter/visibility/rules/PublicInterestRules.scala +++ b/visibilitylib/src/main/scala/com/twitter/visibility/rules/PublicInterestRules.scala @@ -53,6 +53,7 @@ object PublicInterest { PolicyInViolation.MisinformationCivic -> MisinfoCivic, PolicyInViolation.MisinformationGeneric -> MisinfoGeneric, PolicyInViolation.MisinformationMedical -> MisinfoMedical, + PolicyInViolation.MisinformationWar -> MisinfoWar, ) val reasonToPolicyInViolation: Map[Reason, PolicyInViolation] = Map( @@ -77,6 +78,7 @@ object PublicInterest { MisinfoCivic -> PolicyInViolation.MisinformationCivic, MisinfoGeneric -> PolicyInViolation.MisinformationGeneric, MisinfoMedical -> PolicyInViolation.MisinformationMedical, + MisinfoWar -> PolicyInViolation.MisinformationWar, ) val ReasonToSafetyResultReason: Map[Reason, SafetyResultReason] = Map( @@ -115,6 +117,7 @@ object PublicInterest { TweetSafetyLabelType.MisinfoCivic, TweetSafetyLabelType.MisinfoGeneric, TweetSafetyLabelType.MisinfoMedical, + TweetSafetyLabelType.MisinfoWar, TweetSafetyLabelType.IpiDevelopmentOnly ) @@ -175,6 +178,9 @@ class PublicInterestActionBuilder[T <: Action]() extends ActionBuilder[T] { case Some((TweetSafetyLabelType.MisinfoMedical, source)) => (Reason.MisinfoMedical, LimitedEngagementReason.fromString(source.map(_.name))) + case Some((TweetSafetyLabelType.MisinfoWar, source)) => + (Reason.MisinfoWar, LimitedEngagementReason.fromString(source.map(_.name))) + case Some((TweetSafetyLabelType.IpiDevelopmentOnly, _)) => (Reason.IpiDevelopmentOnly, Some(LimitedEngagementReason.NonCompliant)) @@ -219,6 +225,9 @@ class PublicInterestComplianceTweetNoticeActionBuilder case Some((TweetSafetyLabelType.MisinfoMedical, _)) => Reason.MisinfoMedical + case Some((TweetSafetyLabelType.MisinfoWar, _)) => + Reason.MisinfoWar + case Some((TweetSafetyLabelType.IpiDevelopmentOnly, _)) => Reason.IpiDevelopmentOnly @@ -253,6 +262,9 @@ class PublicInterestDropActionBuilder extends ActionBuilder[Drop] { case Some(TweetSafetyLabelType.MisinfoMedical) => Reason.MisinfoMedical + case Some(TweetSafetyLabelType.MisinfoWar) => + Reason.MisinfoWar + case _ => Reason.OneOff } From 33bfee6f9ee546e9768fd3359b567e2d69c782f6 Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 8 Apr 2023 11:28:52 -0400 Subject: [PATCH 3/3] added to `SpaceSafetyLabelType` --- .../com/twitter/visibility/models/SpaceSafetyLabelType.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/visibilitylib/src/main/scala/com/twitter/visibility/models/SpaceSafetyLabelType.scala b/visibilitylib/src/main/scala/com/twitter/visibility/models/SpaceSafetyLabelType.scala index bab719e21..00e198af0 100644 --- a/visibilitylib/src/main/scala/com/twitter/visibility/models/SpaceSafetyLabelType.scala +++ b/visibilitylib/src/main/scala/com/twitter/visibility/models/SpaceSafetyLabelType.scala @@ -32,6 +32,7 @@ object SpaceSafetyLabelType extends SafetyLabelType { s.SpaceSafetyLabelType.CivicIntegrityMisinfo -> CivicIntegrityMisinfo, s.SpaceSafetyLabelType.MedicalMisinfo -> MedicalMisinfo, s.SpaceSafetyLabelType.GenericMisinfo -> GenericMisinfo, + s.SpaceSafetyLabelType.WarMisinfo -> WarMisinfo, s.SpaceSafetyLabelType.DmcaWithheld -> DmcaWithheld, s.SpaceSafetyLabelType.HatefulHighRecall -> HatefulHighRecall, s.SpaceSafetyLabelType.ViolenceHighRecall -> ViolenceHighRecall, @@ -63,6 +64,7 @@ object SpaceSafetyLabelType extends SafetyLabelType { case object NsfwHighRecall extends SpaceSafetyLabelType case object CivicIntegrityMisinfo extends SpaceSafetyLabelType case object MedicalMisinfo extends SpaceSafetyLabelType + case object WarMisinfo extends SpaceSafetyLabelType case object GenericMisinfo extends SpaceSafetyLabelType case object DmcaWithheld extends SpaceSafetyLabelType case object HatefulHighRecall extends SpaceSafetyLabelType