An ATproto social media client -- with an independent Appview.

embedr: return null width (#3598)

authored by bnewbold.net and committed by

GitHub 7e16276c 56828c08

+3 -3
+3 -3
bskyweb/cmd/embedr/handlers.go
··· 55 55 AuthorURL string `json:"author_url,omitempty"` 56 56 ProviderName string `json:"provider_url,omitempty"` 57 57 CacheAge int `json:"cache_age,omitempty"` 58 - Width int `json:"width,omitempty"` 59 - Height *int `json:"height,omitempty"` 58 + Width *int `json:"width"` 59 + Height *int `json:"height"` 60 60 HTML string `json:"html,omitempty"` 61 61 } 62 62 ··· 165 165 AuthorURL: fmt.Sprintf("https://bsky.app/profile/%s", post.Author.Handle), 166 166 ProviderName: "Bluesky Social", 167 167 CacheAge: 86400, 168 - Width: width, 168 + Width: &width, 169 169 Height: nil, 170 170 HTML: html, 171 171 }