Skip to content

Commit

Permalink
Merge pull request #2032 from traPtitech/feat/ogp/support_new_spotify…
Browse files Browse the repository at this point in the history
…_share_link

新しいSpotifyのリンクからOGPを取得する
  • Loading branch information
kaitoyama committed Oct 24, 2023
2 parents 1ef6835 + 60110f8 commit fc465f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion service/ogp/parser/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ var client = http.Client{
}

// X(Twitter)のOGPを取得するのにuserAgentの中にbotという文字列が入っている必要がある
const userAgent = "traq-ogp-fetcher-bot; contact: github.com/traPtitech/traQ"
// Spotifyの新しいOGPを取得するのにuserAgentの中にcurl-botという文字列が入っている必要がある
const userAgent = "traq-ogp-fetcher-curl-bot; contact: github.com/traPtitech/traQ"

func FetchSpecialDomainInfo(url *url.URL) (og *opengraph.OpenGraph, meta *DefaultPageMeta, isSpecialDomain bool, err error) {
switch url.Host {
Expand Down

0 comments on commit fc465f0

Please sign in to comment.