@@ -144,6 +144,9 @@ object NsfwCardImageAvoidAllUsersTweetLabelRule
144
144
action = Avoid (Some (AvoidReason .ContainsNsfwMedia )),
145
145
) {
146
146
override def enabled : Seq [RuleParam [Boolean ]] = Seq (EnableAvoidNsfwRulesParam )
147
+
148
+ override val fallbackActionBuilder : Option [ActionBuilder [_ <: Action ]] = Some (
149
+ new ConstantActionBuilder (Avoid (Some (MightNotBeSuitableForAds ))))
147
150
}
148
151
149
152
object NsfwCardImageAvoidAdPlacementAllUsersTweetLabelRule
@@ -247,6 +250,9 @@ object GoreAndViolenceHighPrecisionAvoidAllUsersTweetLabelRule
247
250
TweetSafetyLabelType .GoreAndViolenceHighPrecision
248
251
) {
249
252
override def enabled : Seq [RuleParam [Boolean ]] = Seq (EnableAvoidNsfwRulesParam )
253
+
254
+ override val fallbackActionBuilder : Option [ActionBuilder [_ <: Action ]] = Some (
255
+ new ConstantActionBuilder (Avoid (Some (MightNotBeSuitableForAds ))))
250
256
}
251
257
252
258
object GoreAndViolenceHighPrecisionAllUsersTweetLabelRule
@@ -266,6 +272,9 @@ object NsfwReportedHeuristicsAvoidAllUsersTweetLabelRule
266
272
TweetSafetyLabelType .NsfwReportedHeuristics
267
273
) {
268
274
override def enabled : Seq [RuleParam [Boolean ]] = Seq (EnableAvoidNsfwRulesParam )
275
+
276
+ override val fallbackActionBuilder : Option [ActionBuilder [_ <: Action ]] = Some (
277
+ new ConstantActionBuilder (Avoid (Some (MightNotBeSuitableForAds ))))
269
278
}
270
279
271
280
object NsfwReportedHeuristicsAvoidAdPlacementAllUsersTweetLabelRule
@@ -274,6 +283,9 @@ object NsfwReportedHeuristicsAvoidAdPlacementAllUsersTweetLabelRule
274
283
TweetSafetyLabelType .NsfwReportedHeuristics
275
284
) {
276
285
override def enabled : Seq [RuleParam [Boolean ]] = Seq (EnableAvoidNsfwRulesParam )
286
+
287
+ override val fallbackActionBuilder : Option [ActionBuilder [_ <: Action ]] = Some (
288
+ new ConstantActionBuilder (Avoid (Some (MightNotBeSuitableForAds ))))
277
289
}
278
290
279
291
object NsfwReportedHeuristicsAllUsersTweetLabelRule
@@ -294,6 +306,9 @@ object GoreAndViolenceReportedHeuristicsAvoidAllUsersTweetLabelRule
294
306
TweetSafetyLabelType .GoreAndViolenceReportedHeuristics
295
307
) {
296
308
override def enabled : Seq [RuleParam [Boolean ]] = Seq (EnableAvoidNsfwRulesParam )
309
+
310
+ override val fallbackActionBuilder : Option [ActionBuilder [_ <: Action ]] = Some (
311
+ new ConstantActionBuilder (Avoid (Some (MightNotBeSuitableForAds ))))
297
312
}
298
313
299
314
object GoreAndViolenceReportedHeuristicsAvoidAdPlacementAllUsersTweetLabelRule
@@ -302,6 +317,9 @@ object GoreAndViolenceReportedHeuristicsAvoidAdPlacementAllUsersTweetLabelRule
302
317
TweetSafetyLabelType .GoreAndViolenceReportedHeuristics
303
318
) {
304
319
override def enabled : Seq [RuleParam [Boolean ]] = Seq (EnableAvoidNsfwRulesParam )
320
+
321
+ override val fallbackActionBuilder : Option [ActionBuilder [_ <: Action ]] = Some (
322
+ new ConstantActionBuilder (Avoid (Some (MightNotBeSuitableForAds ))))
305
323
}
306
324
307
325
object GoreAndViolenceHighPrecisionAllUsersTweetLabelDropRule
@@ -791,7 +809,7 @@ object SkipTweetDetailLimitedEngagementTweetLabelRule
791
809
object DynamicProductAdDropTweetLabelRule
792
810
extends TweetHasLabelRule (Drop (Unspecified ), TweetSafetyLabelType .DynamicProductAd )
793
811
794
- object NsfwTextTweetLabelTopicsDropRule
812
+ object NsfwTextHighPrecisionTweetLabelDropRule
795
813
extends RuleWithConstantAction (
796
814
Drop (Reason .Nsfw ),
797
815
And (
@@ -803,7 +821,7 @@ object NsfwTextTweetLabelTopicsDropRule
803
821
)
804
822
)
805
823
with DoesLogVerdict {
806
- override def enabled : Seq [RuleParam [Boolean ]] = Seq (EnableNsfwTextTopicsDropRuleParam )
824
+ override def enabled : Seq [RuleParam [Boolean ]] = Seq (EnableNsfwTextHighPrecisionDropRuleParam )
807
825
override def actionSourceBuilder : Option [RuleActionSourceBuilder ] = Some (
808
826
TweetSafetyLabelSourceBuilder (TweetSafetyLabelType .NsfwTextHighPrecision ))
809
827
}
@@ -832,7 +850,10 @@ object DoNotAmplifyTweetLabelAvoidRule
832
850
extends TweetHasLabelRule (
833
851
Avoid (),
834
852
TweetSafetyLabelType .DoNotAmplify
835
- )
853
+ ) {
854
+ override val fallbackActionBuilder : Option [ActionBuilder [_ <: Action ]] = Some (
855
+ new ConstantActionBuilder (Avoid (Some (MightNotBeSuitableForAds ))))
856
+ }
836
857
837
858
object NsfaHighPrecisionTweetLabelAvoidRule
838
859
extends TweetHasLabelRule (
0 commit comments