Skip to content

Commit

Permalink
xrpc_repo.describeServer: add chat.bsky.actor.declaration to collections
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Jan 13, 2025
1 parent 406cfd6 commit d7b6c6d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ _Non-breaking changes:_
* `AtpRemoteBlob`:
* Add `width` and `height` properties, populated for images, to be used in image embed `aspectRatio` ([snarfed/bridgy-fed#1571](https://github.com/snarfed/bridgy-fed/issues/1571)).
* `xrpc_repo`:
* `describe_server`: include all `app.bsky` collections, fetch and include DID doc.
* `describe_server`: include all `app.bsky` collections and others like `chat.bsky.actor.declaration`; fetch and include DID doc.


### 0.7 - 2024-11-08
Expand Down
5 changes: 3 additions & 2 deletions arroba/tests/test_xrpc_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ def test_describe_repo(self, _):
},
'collections': [
'app.bsky.actor.profile',
'app.bsky.feed.like',
'app.bsky.feed.post',
'app.bsky.feed.repost',
'app.bsky.graph.block',
'app.bsky.graph.follow',
'app.bsky.feed.like',
'app.bsky.feed.repost',
'chat.bsky.actor.declaration',
],
'handleIsCorrect': True,
}, resp)
Expand Down
5 changes: 3 additions & 2 deletions arroba/xrpc_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,12 @@ def describe_repo(input, repo=None):
'didDoc': did_doc,
'collections': [
'app.bsky.actor.profile',
'app.bsky.feed.like',
'app.bsky.feed.post',
'app.bsky.feed.repost',
'app.bsky.graph.block',
'app.bsky.graph.follow',
'app.bsky.feed.like',
'app.bsky.feed.repost',
'chat.bsky.actor.declaration',
],
'handleIsCorrect': True,
}
Expand Down

0 comments on commit d7b6c6d

Please sign in to comment.