Skip to content

Commit

Permalink
embedr: return null width (#3598)
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold authored Apr 17, 2024
1 parent 56828c0 commit 7e16276
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bskyweb/cmd/embedr/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

Expand Down Expand Up @@ -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,
}
Expand Down

0 comments on commit 7e16276

Please sign in to comment.