Skip to content

Commit

Permalink
Remove badges (bluesky-social#291)
Browse files Browse the repository at this point in the history
* rm schemas

* rm db

* wrapping up

Co-authored-by: Devin Ivy <[email protected]>
  • Loading branch information
dholms and devinivy authored Nov 2, 2022
1 parent 794d87e commit 4229ac9
Show file tree
Hide file tree
Showing 46 changed files with 165 additions and 2,743 deletions.
56 changes: 0 additions & 56 deletions lexicons/bsky.app/badge.json

This file was deleted.

25 changes: 0 additions & 25 deletions lexicons/bsky.app/badgeAccept.json

This file was deleted.

25 changes: 0 additions & 25 deletions lexicons/bsky.app/badgeOffer.json

This file was deleted.

40 changes: 0 additions & 40 deletions lexicons/bsky.app/getBadgeMembers.json

This file was deleted.

2 changes: 1 addition & 1 deletion lexicons/bsky.app/getNotifications.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"reason": {
"type": "string",
"$comment": "Expected values are 'like', 'repost', 'follow', 'badge', 'invite', 'mention' and 'reply'."
"$comment": "Expected values are 'like', 'repost', 'follow', 'invite', 'mention' and 'reply'."
},
"reasonSubject": {"type": "string"},
"record": {"type": "object"},
Expand Down
35 changes: 1 addition & 34 deletions lexicons/bsky.app/getProfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["did", "name", "followersCount", "followsCount", "postsCount", "pinnedBadges"],
"required": ["did", "name", "followersCount", "followsCount", "postsCount"],
"properties": {
"did": {"type": "string"},
"name": {"type": "string"},
Expand All @@ -24,7 +24,6 @@
"followersCount": {"type": "number"},
"followsCount": {"type": "number"},
"postsCount": {"type": "number"},
"pinnedBadges": {"type": "array", "items": {"$ref":"#/defs/badge"}},
"myState": {
"type": "object",
"properties": {
Expand All @@ -33,37 +32,5 @@
}
}
}
},
"defs": {
"badge": {
"type": "object",
"required": ["uri", "cid"],
"properties": {
"uri": {"type": "string"},
"cid": {"type": "string"},
"error": {"type": "string"},
"issuer": {
"type": "object",
"required": ["did", "name"],
"properties": {
"did": {"type": "string"},
"name": {"type": "string"},
"displayName": {
"type": "string",
"maxLength": 64
}
}
},
"assertion": {
"type": "object",
"required": ["type"],
"properties": {
"type": {"type": "string"},
"tag": {"type": "string", "maxLength": 64}
}
},
"createdAt": {"type": "string", "format": "date-time"}
}
}
}
}
11 changes: 0 additions & 11 deletions lexicons/bsky.app/profile.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,6 @@
"description": {
"type": "string",
"maxLength": 256
},
"pinnedBadges": {"type": "array", "items": {"$ref": "#/defs/badgeRef"}}
}
},
"defs": {
"badgeRef": {
"type": "object",
"required": ["uri", "cid"],
"properties": {
"uri": {"type": "string"},
"cid": {"type": "string"}
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions lexicons/bsky.app/updateProfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"description": {
"type": "string",
"maxLength": 256
},
"pinnedBadges": {"type": "array", "items": {"$ref": "lex:app.bsky.profile#/defs/badgeRef"}}
}
}
}
},
Expand Down
Loading

0 comments on commit 4229ac9

Please sign in to comment.