Skip to content

Commit

Permalink
limit external embed strings sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Dec 28, 2023
1 parent a2a07f1 commit 6b69822
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions lexicons/app/bsky/embed/external.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,16 @@
"required": ["uri", "title", "description"],
"properties": {
"uri": { "type": "string", "format": "uri" },
"title": { "type": "string" },
"description": { "type": "string" },
"title": {
"type": "string",
"maxGraphemes": 300,
"maxLength": 3000
},
"description": {
"type": "string",
"maxGraphemes": 1000,
"maxLength": 10000
},
"thumb": {
"type": "blob",
"accept": ["image/*"],
Expand All @@ -42,8 +50,16 @@
"required": ["uri", "title", "description"],
"properties": {
"uri": { "type": "string", "format": "uri" },
"title": { "type": "string" },
"description": { "type": "string" },
"title": {
"type": "string",
"maxGraphemes": 300,
"maxLength": 3000
},
"description": {
"type": "string",
"maxGraphemes": 1000,
"maxLength": 10000
},
"thumb": { "type": "string" }
}
}
Expand Down

0 comments on commit 6b69822

Please sign in to comment.