forked from bluesky-social/atproto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incorporate blobs into moderation actions (bluesky-social#511)
* Lexicon updates for moderating blobs * Add tracking of blob takedowns to moderation system * Handle blobs in record takedown reversal * Apply blob takedowns w/ image invalidation * Test blob takedowns * Implement cloudfront image invalidator * Update lexicons for current moderation action on records and blobs * Fix migration for postgres * Enforce single current action per repo and blob, present current action on repo and blob * Test single active mod action per repo, record, and blob * Continue to resolve handles for moderated repos
- Loading branch information
Showing
49 changed files
with
2,308 additions
and
190 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "com.atproto.admin.blob", | ||
"defs": { | ||
"view": { | ||
"type": "object", | ||
"required": ["cid", "mimeType", "size", "createdAt"], | ||
"properties": { | ||
"cid": {"type": "string"}, | ||
"mimeType": {"type": "string"}, | ||
"size": {"type": "integer"}, | ||
"createdAt": {"type": "datetime"}, | ||
"details": { | ||
"type": "union", | ||
"refs": ["#imageDetails", "#videoDetails"] | ||
}, | ||
"moderation": {"type": "ref", "ref": "#moderation"} | ||
} | ||
}, | ||
"imageDetails": { | ||
"type": "object", | ||
"required": ["width", "height"], | ||
"properties": { | ||
"width": {"type": "integer"}, | ||
"height": {"type": "integer"} | ||
} | ||
}, | ||
"videoDetails": { | ||
"type": "object", | ||
"required": ["width", "height", "length"], | ||
"properties": { | ||
"width": {"type": "integer"}, | ||
"height": {"type": "integer"}, | ||
"length": {"type": "integer"} | ||
} | ||
}, | ||
"moderation": { | ||
"type": "object", | ||
"required": [], | ||
"properties": { | ||
"currentAction": {"type": "ref", "ref": "com.atproto.admin.moderationAction#viewCurrent"} | ||
} | ||
} | ||
} | ||
} |
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
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
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
Oops, something went wrong.