Skip to content

Commit

Permalink
Fix oEmbed provider_url and provider_name (#6942)
Browse files Browse the repository at this point in the history
Fixes #6941
  • Loading branch information
xenomachina authored Dec 4, 2024
1 parent df3b43b commit 4582a9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bskyweb/cmd/embedr/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ type OEmbedResponse struct {
Version string `json:"version"`
AuthorName string `json:"author_name,omitempty"`
AuthorURL string `json:"author_url,omitempty"`
ProviderName string `json:"provider_url,omitempty"`
ProviderName string `json:"provider_name,omitempty"`
ProviderURL string `json:"provider_url,omitempty"`
CacheAge int `json:"cache_age,omitempty"`
Width *int `json:"width"`
Height *int `json:"height"`
Expand Down Expand Up @@ -170,6 +171,7 @@ func (srv *Server) WebOEmbed(c echo.Context) error {
AuthorName: "@" + post.Author.Handle,
AuthorURL: fmt.Sprintf("https://bsky.app/profile/%s", post.Author.Handle),
ProviderName: "Bluesky Social",
ProviderURL: "https://bsky.app",
CacheAge: 86400,
Width: &width,
Height: nil,
Expand Down

0 comments on commit 4582a9c

Please sign in to comment.