A community based topic aggregation platform built on atproto

Adding user blocking as a lexicon

Changed files
+34 -1
internal
atproto
lexicon
social
+33
internal/atproto/lexicon/social/coves/actor/block.json
···
···
+
{
+
"lexicon": 1,
+
"id": "social.coves.actor.block",
+
"defs": {
+
"main": {
+
"type": "record",
+
"description": "A block relationship where one user blocks another",
+
"key": "tid",
+
"record": {
+
"type": "object",
+
"required": ["subject", "createdAt"],
+
"properties": {
+
"subject": {
+
"type": "string",
+
"format": "did",
+
"description": "DID of the user being blocked"
+
},
+
"createdAt": {
+
"type": "string",
+
"format": "datetime",
+
"description": "When the block was created"
+
},
+
"reason": {
+
"type": "string",
+
"maxGraphemes": 300,
+
"maxLength": 3000,
+
"description": "Optional reason for blocking"
+
}
+
}
+
}
+
}
+
}
+
}
+1 -1
internal/atproto/lexicon/social/coves/actor/membership.json
···
"key": "tid",
"record": {
"type": "object",
-
"required": ["community", "reputation", "joinedAt", "createdAt"],
"properties": {
"community": {
"type": "string",
···
"key": "tid",
"record": {
"type": "object",
+
"required": ["community", "reputation", "createdAt", "createdAt"],
"properties": {
"community": {
"type": "string",