diff options
author | bnewbold <bnewbold@robocracy.org> | 2024-04-17 14:41:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-17 14:41:29 -0700 |
commit | 7e16276c04e8e26e41c3d43c741cb006c79212c9 (patch) | |
tree | 0ab0fb3a860e0a598077ae5d70f449d0ac054a95 | |
parent | 56828c088d2d8f8fde322c2b09015a3899c55cf7 (diff) | |
download | voidsky-7e16276c04e8e26e41c3d43c741cb006c79212c9.tar.zst |
embedr: return null width (#3598)
-rw-r--r-- | bskyweb/cmd/embedr/handlers.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bskyweb/cmd/embedr/handlers.go b/bskyweb/cmd/embedr/handlers.go index 2ab72be44..5fee7f3a0 100644 --- a/bskyweb/cmd/embedr/handlers.go +++ b/bskyweb/cmd/embedr/handlers.go @@ -55,8 +55,8 @@ type OEmbedResponse struct { AuthorURL string `json:"author_url,omitempty"` ProviderName string `json:"provider_url,omitempty"` CacheAge int `json:"cache_age,omitempty"` - Width int `json:"width,omitempty"` - Height *int `json:"height,omitempty"` + Width *int `json:"width"` + Height *int `json:"height"` HTML string `json:"html,omitempty"` } @@ -165,7 +165,7 @@ func (srv *Server) WebOEmbed(c echo.Context) error { AuthorURL: fmt.Sprintf("https://bsky.app/profile/%s", post.Author.Handle), ProviderName: "Bluesky Social", CacheAge: 86400, - Width: width, + Width: &width, Height: nil, HTML: html, } |