Skip to content

Commit 7f38ee0

Browse files
authored
Add pronouns to profileView and profileViewBasic (#4232)
1 parent 778f763 commit 7f38ee0

File tree

11 files changed

+40
-1
lines changed

11 files changed

+40
-1
lines changed

.changeset/metal-llamas-mate.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@atproto/api": patch
3+
---
4+
5+
Add `pronouns` to `profileView` and `profileViewBasic`

lexicons/app/bsky/actor/defs.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"maxGraphemes": 64,
1414
"maxLength": 640
1515
},
16+
"pronouns": { "type": "string" },
1617
"avatar": { "type": "string", "format": "uri" },
1718
"associated": {
1819
"type": "ref",
@@ -45,6 +46,7 @@
4546
"maxGraphemes": 64,
4647
"maxLength": 640
4748
},
49+
"pronouns": { "type": "string" },
4850
"description": {
4951
"type": "string",
5052
"maxGraphemes": 256,

packages/api/src/client/lexicons.ts

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/api/src/client/types/app/bsky/actor/defs.ts

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/bsky/src/lexicon/lexicons.ts

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/bsky/src/lexicon/types/app/bsky/actor/defs.ts

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/bsky/src/views/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ export class Views {
265265

266266
return {
267267
...baseView,
268-
pronouns: actor.profile?.pronouns,
269268
website: this.profileWebsite(did, state),
270269
viewer: baseView.viewer
271270
? {
@@ -345,6 +344,7 @@ export class Views {
345344
did,
346345
handle: actor.handle ?? INVALID_HANDLE,
347346
displayName: actor.profile?.displayName,
347+
pronouns: actor.profile?.pronouns,
348348
avatar: actor.profile?.avatar
349349
? this.imgUriBuilder.getPresetUri(
350350
'avatar',

packages/ozone/src/lexicon/lexicons.ts

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/ozone/src/lexicon/types/app/bsky/actor/defs.ts

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/pds/src/lexicon/lexicons.ts

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)