@atproto/api 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/definitions/locale/en/labels.json +6 -6
- package/definitions/post-moderation-behaviors.json +5 -2
- package/dist/index.js +9 -6
- package/dist/index.js.map +2 -2
- package/docs/labels.md +6 -6
- package/docs/moderation-behaviors/posts.md +3 -3
- package/package.json +2 -2
- package/src/moderation/const/labels.ts +6 -6
- package/src/moderation/index.ts +3 -0
- package/tsconfig.build.tsbuildinfo +1 -0
|
@@ -75,11 +75,11 @@
|
|
|
75
75
|
"description": "Images of full-frontal nudity (genitalia) in any sexualized context, or explicit sexual activity (meaning contact with genitalia or breasts) even if partially covered. Includes graphic sexual cartoons (often jokes/memes)."
|
|
76
76
|
},
|
|
77
77
|
"account": {
|
|
78
|
-
"name": "
|
|
78
|
+
"name": "Adult Content",
|
|
79
79
|
"description": "This account contains imagery of full-frontal nudity or explicit sexual activity."
|
|
80
80
|
},
|
|
81
81
|
"content": {
|
|
82
|
-
"name": "
|
|
82
|
+
"name": "Adult Content",
|
|
83
83
|
"description": "This content contains imagery of full-frontal nudity or explicit sexual activity."
|
|
84
84
|
}
|
|
85
85
|
},
|
|
@@ -89,11 +89,11 @@
|
|
|
89
89
|
"description": "Content that does not meet the level of \"pornography\", but is still sexual. Some common examples have been selfies and \"hornyposting\" with underwear on, or partially naked (naked but covered, eg with hands or from side perspective). Sheer/see-through nipples may end up in this category."
|
|
90
90
|
},
|
|
91
91
|
"account": {
|
|
92
|
-
"name": "
|
|
92
|
+
"name": "Suggestive Content",
|
|
93
93
|
"description": "This account contains imagery which is sexually suggestive. Common examples include selfies in underwear or in partial undress."
|
|
94
94
|
},
|
|
95
95
|
"content": {
|
|
96
|
-
"name": "
|
|
96
|
+
"name": "Suggestive Content",
|
|
97
97
|
"description": "This content contains imagery which is sexually suggestive. Common examples include selfies in underwear or in partial undress."
|
|
98
98
|
}
|
|
99
99
|
},
|
|
@@ -103,11 +103,11 @@
|
|
|
103
103
|
"description": "Nudity which is not sexual, or that is primarily \"artistic\" in nature. For example: breastfeeding; classic art paintings and sculptures; newspaper images with some nudity; fashion modeling. \"Erotic photography\" is likely to end up in sexual or porn."
|
|
104
104
|
},
|
|
105
105
|
"account": {
|
|
106
|
-
"name": "
|
|
106
|
+
"name": "Adult Content",
|
|
107
107
|
"description": "This account contains imagery which portrays nudity in a non-sexual or artistic setting."
|
|
108
108
|
},
|
|
109
109
|
"content": {
|
|
110
|
-
"name": "
|
|
110
|
+
"name": "Adult Content",
|
|
111
111
|
"description": "This content contains imagery which portrays nudity in a non-sexual or artistic setting."
|
|
112
112
|
}
|
|
113
113
|
},
|
|
@@ -379,7 +379,8 @@
|
|
|
379
379
|
"quoteAuthor": "alice",
|
|
380
380
|
"labels": {"quotedPost": ["porn"]},
|
|
381
381
|
"behaviors": {
|
|
382
|
-
"content": {"cause": "label:porn", "filter": true}
|
|
382
|
+
"content": {"cause": "label:porn", "filter": true},
|
|
383
|
+
"embed": {"cause": "label:porn", "blur": true}
|
|
383
384
|
}
|
|
384
385
|
},
|
|
385
386
|
"Blur-media label ('porn') on quoted author account (hide)": {
|
|
@@ -428,6 +429,7 @@
|
|
|
428
429
|
"quoteAuthor": "alice",
|
|
429
430
|
"labels": {"quotedPost": ["porn"]},
|
|
430
431
|
"behaviors": {
|
|
432
|
+
"embed": {"cause": "label:porn", "blur": true}
|
|
431
433
|
}
|
|
432
434
|
},
|
|
433
435
|
"Blur-media label ('porn') on quoted author account (warn)": {
|
|
@@ -653,7 +655,8 @@
|
|
|
653
655
|
"quoteAuthor": "alice",
|
|
654
656
|
"labels": {"quotedPost": ["porn"]},
|
|
655
657
|
"behaviors": {
|
|
656
|
-
"content": {"cause": "label:porn", "filter": true}
|
|
658
|
+
"content": {"cause": "label:porn", "filter": true},
|
|
659
|
+
"embed": {"cause": "label:porn", "blur": true, "noOverride": true}
|
|
657
660
|
}
|
|
658
661
|
},
|
|
659
662
|
"Adult-only label on quoted author account when adult content is disabled": {
|
package/dist/index.js
CHANGED
|
@@ -27530,13 +27530,13 @@ var LABELS = {
|
|
|
27530
27530
|
},
|
|
27531
27531
|
account: {
|
|
27532
27532
|
en: {
|
|
27533
|
-
name: "
|
|
27533
|
+
name: "Adult Content",
|
|
27534
27534
|
description: "This account contains imagery of full-frontal nudity or explicit sexual activity."
|
|
27535
27535
|
}
|
|
27536
27536
|
},
|
|
27537
27537
|
content: {
|
|
27538
27538
|
en: {
|
|
27539
|
-
name: "
|
|
27539
|
+
name: "Adult Content",
|
|
27540
27540
|
description: "This content contains imagery of full-frontal nudity or explicit sexual activity."
|
|
27541
27541
|
}
|
|
27542
27542
|
}
|
|
@@ -27558,13 +27558,13 @@ var LABELS = {
|
|
|
27558
27558
|
},
|
|
27559
27559
|
account: {
|
|
27560
27560
|
en: {
|
|
27561
|
-
name: "
|
|
27561
|
+
name: "Suggestive Content",
|
|
27562
27562
|
description: "This account contains imagery which is sexually suggestive. Common examples include selfies in underwear or in partial undress."
|
|
27563
27563
|
}
|
|
27564
27564
|
},
|
|
27565
27565
|
content: {
|
|
27566
27566
|
en: {
|
|
27567
|
-
name: "
|
|
27567
|
+
name: "Suggestive Content",
|
|
27568
27568
|
description: "This content contains imagery which is sexually suggestive. Common examples include selfies in underwear or in partial undress."
|
|
27569
27569
|
}
|
|
27570
27570
|
}
|
|
@@ -27586,13 +27586,13 @@ var LABELS = {
|
|
|
27586
27586
|
},
|
|
27587
27587
|
account: {
|
|
27588
27588
|
en: {
|
|
27589
|
-
name: "
|
|
27589
|
+
name: "Adult Content",
|
|
27590
27590
|
description: "This account contains imagery which portrays nudity in a non-sexual or artistic setting."
|
|
27591
27591
|
}
|
|
27592
27592
|
},
|
|
27593
27593
|
content: {
|
|
27594
27594
|
en: {
|
|
27595
|
-
name: "
|
|
27595
|
+
name: "Adult Content",
|
|
27596
27596
|
description: "This content contains imagery which portrays nudity in a non-sexual or artistic setting."
|
|
27597
27597
|
}
|
|
27598
27598
|
}
|
|
@@ -28454,6 +28454,9 @@ function moderatePost(subject, opts) {
|
|
|
28454
28454
|
quote = decideQuotedPostWithMedia(subject.embed, opts);
|
|
28455
28455
|
quotedAccount = decideQuotedPostWithMediaAccount(subject.embed, opts);
|
|
28456
28456
|
}
|
|
28457
|
+
if (quote?.blurMedia) {
|
|
28458
|
+
quote.blur = true;
|
|
28459
|
+
}
|
|
28457
28460
|
if (!isModerationDecisionNoop(post) && post.did === opts.userDid) {
|
|
28458
28461
|
downgradeDecision(post, { alert: true });
|
|
28459
28462
|
}
|