diff options
author | Laurence Gonsalves <laurence@xenomachina.com> | 2024-12-04 09:21:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-04 17:21:52 +0000 |
commit | 4582a9cf1f47faeaadd8a362bf8ce1ce9e017a96 (patch) | |
tree | 554b88a714a3c45ffc2ffcf3f60eff6fabbf3fb8 /bskyweb | |
parent | df3b43bb645ec2b9a47e70b6d143ce45ee895a0d (diff) | |
download | voidsky-4582a9cf1f47faeaadd8a362bf8ce1ce9e017a96.tar.zst |
Fix oEmbed provider_url and provider_name (#6942)
Fixes https://github.com/bluesky-social/social-app/issues/6941
Diffstat (limited to 'bskyweb')
-rw-r--r-- | bskyweb/cmd/embedr/handlers.go | 4 |
1 files changed, 3 insertions, 1 deletions
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, |