Skip to content

Getting the View for an Image in a quote post #119

Closed Answered by Scrxtchy
Scrxtchy asked this question in General
Discussion options

You must be logged in to vote

EDIT: this is a type problem (explained below)

I've solved the issue, but it's... it's shocking
https://github.com/MarshalX/atproto/blob/main/atproto/xrpc_client/models/app/bsky/feed/defs.py#L25-L33

I moved 'models.AppBskyEmbedRecordWithMedia.View' to the top of the list, and it started filling out the data correctly

View(media=View(images=[ViewImage(alt='',
                                  fullsize='https://cdn.bsky.social/imgproxy/-msLgPXc7BkLB84gVN6iCUIR7CHOoXdbTkD6YpCeFZY/rs:fit:2000:2000:1:0/plain/bafkreif2blhvgss23kj2lqi6b6qkb6jqnz3zze6mvyvh7argmhpealzlw4@jpeg',
                                  thumb='https://cdn.bsky.social/imgproxy/f_aTws11I8nONbB0qlIQ5eXHEFvaLELJqTN_4T2v_FY/rs:…

Replies: 4 comments 18 replies

Comment options

You must be logged in to vote
17 replies
@MarshalX
Comment options

@Scrxtchy
Comment options

@Scrxtchy
Comment options

@Scrxtchy
Comment options

Answer selected by Scrxtchy
@MarshalX
Comment options

@MarshalX
Comment options

@MarshalX
Comment options

@Scrxtchy
Comment options

Comment options

You must be logged in to vote
1 reply
@MarshalX
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants