From 4582a9cf1f47faeaadd8a362bf8ce1ce9e017a96 Mon Sep 17 00:00:00 2001 From: Laurence Gonsalves Date: Wed, 4 Dec 2024 09:21:52 -0800 Subject: Fix oEmbed provider_url and provider_name (#6942) Fixes https://github.com/bluesky-social/social-app/issues/6941 --- bskyweb/cmd/embedr/handlers.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bskyweb') diff --git a/bskyweb/cmd/embedr/handlers.go b/bskyweb/cmd/embedr/handlers.go index a3767eeca..15e57a411 100644 --- a/bskyweb/cmd/embedr/handlers.go +++ b/bskyweb/cmd/embedr/handlers.go @@ -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"` @@ -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, -- cgit 1.4.1