Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include limited viewer info on blocked post #1457

Merged
merged 6 commits into from
Aug 10, 2023
Merged

Include limited viewer info on blocked post #1457

merged 6 commits into from
Aug 10, 2023

Conversation

dholms
Copy link
Collaborator

@dholms dholms commented Aug 9, 2023

includes limited viewer info (blocking & blockedBy) on blocked posts. This helps the UI display the correct prompt.

One little point of friction: the viewer here is different from the viewer on post (post v actor). Do we want to adjust the property name at all? viewerActor feels kinda sloppy

@pfrazee
Copy link
Collaborator

pfrazee commented Aug 9, 2023

🙏 muchos gracias this is perf

One little point of friction: the viewer here is different from the viewer on post (post v actor). Do we want to adjust the property name at all? viewerActor feels kinda sloppy

I'm not overly bothered by this, but one thing we could consider doing is

uri: string
blocked: true
author: {
  did: string
  viewer: Viewer
}

We know the did already from the URL so it doesn't violate anything, and it resolves this awkwardness.

@dholms
Copy link
Collaborator Author

dholms commented Aug 9, 2023

yeah I like that 👍

@pfrazee
Copy link
Collaborator

pfrazee commented Aug 9, 2023

do you intend to make author optional? (we can get away with a breaking change here, I think). Otherwise +1

@dholms
Copy link
Collaborator Author

dholms commented Aug 10, 2023

good call - I think we want author to be required but viewer to be optional

@pfrazee
Copy link
Collaborator

pfrazee commented Aug 10, 2023

Thanks!

@dholms dholms merged commit ba979b4 into main Aug 10, 2023
@dholms dholms deleted the block-viewer-info branch August 10, 2023 19:31
mloar pushed a commit to mloar/atproto that referenced this pull request Sep 26, 2023
* include limited viewer info on block

* blockedAuthor schema

* make author required

* merge & update codegen

* patch up tests
mloar pushed a commit to mloar/atproto that referenced this pull request Nov 15, 2023
* include limited viewer info on block

* blockedAuthor schema

* make author required

* merge & update codegen

* patch up tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants