myConsciousness / atproto.dart

🦋 AT Protocol and Bluesky things for Dart and Flutter.
https://atprotodart.com
BSD 3-Clause "New" or "Revised" License
177 stars 14 forks source link

Feature Request: unblock #992

Closed temujin9 closed 1 year ago

temujin9 commented 1 year ago

Packages/Tools

Proposal

Risks

github-actions[bot] commented 1 year ago

Thanks for your contribution! :)

temujin9 commented 1 year ago

This is functionally equivalent to a delete on the appropriate "blocking" at uri; it can be accomplished with that in the mean time.

myConsciousness commented 1 year ago

Hi @temujin9 !

A block in Bluesky is represented as an atproto record, this is the same as post and follow. So, since atproto supports a deleteRecord endpoint (delete command on bluesky_cli) that can delete all records based on AT URIs with a common mechanism, there seems to me no need to implement unfollow or unblock.

A possible use case for deleting blocks with bluesky_cli is to use the blocks command to get a list of blocks and then delete a specific block. Then this list contains the AT URI for the block, so we could remove the block as follows :)

bsky delete --uri=at://........
temujin9 commented 1 year ago

Yep, that worked, thank you. This is mostly just for parity with the mute / unmute functionality; feel free to close it if not useful to you.