+4
config/labels.yaml
+4
config/labels.yaml
+6
models/base.sml
+6
models/base.sml
+3
rules/record/profile/index.sml
+3
rules/record/profile/index.sml
+31
rules/record/profile/julie.sml
+31
rules/record/profile/julie.sml
···
1
+
Import(
2
+
rules=[
3
+
'models/base.sml',
4
+
'models/record/base.sml',
5
+
'models/record/profile.sml',
6
+
],
7
+
)
8
+
9
+
JulieProfileRule = Rule(
10
+
when_all=[
11
+
(StringContains(s=ProfileDescription, substrings=True, phrase='girly.bio')
12
+
or StringContains(s=ProfileDescription, substrings=True, phrase='juliewaifu')
13
+
or StringContains(s=ProfileDescription, substrings=True, phrase='waifujulie')),
14
+
(StringContains(s=ProfileDisplayName, substrings=True, phrase='julie') or
15
+
StringContains(s=Handle, substrings=True, phrase='julie')),
16
+
AccountAgeSecondsUnwrapped <= 12*Hour,
17
+
],
18
+
description='Julie profile'
19
+
)
20
+
21
+
WhenRules(
22
+
rules_any=[JulieProfileRule],
23
+
then=[
24
+
AtprotoLabel(
25
+
entity=UserId,
26
+
label='general-spam',
27
+
comment='Julie spam profile',
28
+
expiration_in_hours=None,
29
+
),
30
+
],
31
+
)