-
Notifications
You must be signed in to change notification settings - Fork 643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labeling & moderation updates to SDK #1366
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
1f3b455
First pass on label definitions and reference-doc generation for them
pfrazee 39f1365
Tune labels
pfrazee 6bddab2
Drop the 'csam' label in favor of using !hide
pfrazee 136373a
Add label definition code generation
pfrazee ff06052
Implement all type signatures for moderation
pfrazee 9f33c03
Complete a first pass on the labeling sdk
pfrazee 91c2e05
Add post-moderation test suite
pfrazee 7e62919
Add post moderation behavior documentation
pfrazee af83028
Add self-post behaviors
pfrazee 7ac61d5
Improve post moderation doc
pfrazee 730701d
Tune up the post moderation doc
pfrazee da65b7a
Tune up the post moderation doc
pfrazee 37abbb8
Tune up the post moderation doc
pfrazee 413e27d
Simplify the post moderation behavior descriptions
pfrazee 5ca6f1f
More behavior description tuneup
pfrazee bc7e542
Add profile moderation final behaviors and tests
pfrazee 1cbf0d6
Improve generated post-moderation-behaviors doc
pfrazee 8f06c4d
Add profile moderation behaviors doc
pfrazee e7a00b7
Test muted-by-list specifically
pfrazee fe3c173
Fixes to label descriptions
pfrazee 859b990
Fix to muted-by-list behavior
pfrazee 5ab209c
Dont blur account in moderateProfile() when muting
pfrazee 10c4f05
Tune label copy
pfrazee 2e2d626
Apply post embed blurring when account is marked with blurmedia label
pfrazee 46c7cca
Fix output signature
pfrazee 1bb3661
Fixes to blocking behavior
pfrazee 182d20c
Rename LabelDefinitionPreference to LabelPreference
pfrazee a8c30f9
Update docs
pfrazee edc49ca
Fix test
pfrazee dbe4101
Fix: self-harm should blur media only
pfrazee 85c224d
Fixes to tests
pfrazee 54c8646
Improve label copy
pfrazee 2863240
Remove all labels that do not have a specific policy
pfrazee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,212 @@ | ||
[ | ||
{ | ||
"id": "system", | ||
"configurable": false, | ||
"labels": [ | ||
{ | ||
"id": "!hide", | ||
"preferences": ["hide"], | ||
"flags": ["no-override"], | ||
"onwarn": "blur" | ||
}, | ||
{ | ||
"id": "!no-promote", | ||
"preferences": ["hide"], | ||
"flags": [], | ||
"onwarn": null | ||
}, | ||
{ | ||
"id": "!warn", | ||
"preferences": ["warn"], | ||
"flags": [], | ||
"onwarn": "blur" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "legal", | ||
"configurable": false, | ||
"labels": [ | ||
{ | ||
"id": "dmca-violation", | ||
"preferences": ["hide"], | ||
"flags": ["no-override"], | ||
"onwarn": "blur" | ||
}, | ||
{ | ||
"id": "doxxing", | ||
"preferences": ["hide"], | ||
"flags": ["no-override"], | ||
"onwarn": "blur" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "sexual", | ||
"configurable": true, | ||
"labels": [ | ||
{ | ||
"id": "porn", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": ["adult"], | ||
"onwarn": "blur-media" | ||
}, | ||
{ | ||
"id": "sexual", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": ["adult"], | ||
"onwarn": "blur-media" | ||
}, | ||
{ | ||
"id": "nudity", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": ["adult"], | ||
"onwarn": "blur-media" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "violence", | ||
"configurable": true, | ||
"labels": [ | ||
{ | ||
"id": "nsfl", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": ["adult"], | ||
"onwarn": "blur-media" | ||
}, | ||
{ | ||
"id": "corpse", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": ["adult"], | ||
"onwarn": "blur-media" | ||
}, | ||
{ | ||
"id": "gore", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": ["adult"], | ||
"onwarn": "blur-media" | ||
}, | ||
{ | ||
"id": "torture", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": ["adult"], | ||
"onwarn": "blur" | ||
}, | ||
{ | ||
"id": "self-harm", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": ["adult"], | ||
"onwarn": "blur-media" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "intolerance", | ||
"configurable": true, | ||
"labels": [ | ||
{ | ||
"id": "intolerant-race", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": [], | ||
"onwarn": "blur" | ||
}, | ||
{ | ||
"id": "intolerant-gender", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": [], | ||
"onwarn": "blur" | ||
}, | ||
{ | ||
"id": "intolerant-sexual-orientation", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": [], | ||
"onwarn": "blur" | ||
}, | ||
{ | ||
"id": "intolerant-religion", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": [], | ||
"onwarn": "blur" | ||
}, | ||
{ | ||
"id": "intolerant", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": [], | ||
"onwarn": "blur" | ||
}, | ||
{ | ||
"id": "icon-intolerant", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": [], | ||
"onwarn": "blur-media" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "rude", | ||
"configurable": true, | ||
"labels": [ | ||
{ | ||
"id": "threat", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": [], | ||
"onwarn": "blur" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "curation", | ||
"configurable": true, | ||
"labels": [ | ||
{ | ||
"id": "spoiler", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": [], | ||
"onwarn": "blur" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "spam", | ||
"configurable": true, | ||
"labels": [ | ||
{ | ||
"id": "spam", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": [], | ||
"onwarn": "blur" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "misinfo", | ||
"configurable": true, | ||
"labels": [ | ||
{ | ||
"id": "account-security", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": [], | ||
"onwarn": "blur" | ||
}, | ||
{ | ||
"id": "net-abuse", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": [], | ||
"onwarn": "blur" | ||
}, | ||
{ | ||
"id": "impersonation", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": [], | ||
"onwarn": "alert" | ||
}, | ||
{ | ||
"id": "scam", | ||
"preferences": ["ignore", "warn", "hide"], | ||
"flags": [], | ||
"onwarn": "alert" | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"system": { | ||
"name": "System", | ||
"description": "Moderator overrides for special cases." | ||
}, | ||
"legal": { | ||
"name": "Legal", | ||
"description": "Content removed for legal reasons." | ||
}, | ||
"sexual": { | ||
"name": "Adult Content", | ||
"description": "Content which is sexual in nature." | ||
}, | ||
"violence": { | ||
"name": "Violence", | ||
"description": "Content which is violent or deeply disturbing." | ||
}, | ||
"intolerance": { | ||
"name": "Intolerance", | ||
"description": "Content or behavior which is hateful or intolerant toward a group of people." | ||
}, | ||
"rude": { | ||
"name": "Rude", | ||
"description": "Behavior which is rude toward other users." | ||
}, | ||
"curation": { | ||
"name": "Curational", | ||
"description": "Subjective moderation geared towards curating a more positive environment." | ||
}, | ||
"spam": { | ||
"name": "Spam", | ||
"description": "Content which doesn't add to the conversation." | ||
}, | ||
"misinfo": { | ||
"name": "Misinformation", | ||
"description": "Content which misleads or defrauds users." | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there an argument for putting this in a separate package?
we use
@atproto/api
in a the pds/appview for instance and may not want to pull in the whole labeling sdkdon't think this is block but could imagine an
sdk
package that is comprised ofapi
&labels
or similarThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe but I'm not inclined to do it yet