Add standard theme-color now that color api ded

This commit is contained in:
dangered wolf 2023-08-22 16:03:40 -04:00
parent 3ea9f96fef
commit a1ee2c42f8
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58

View file

@ -120,7 +120,7 @@ export const handleStatus = async (
const headers = [ const headers = [
`<link rel="canonical" href="${Constants.TWITTER_ROOT}/${tweet.author.screen_name}/status/${tweet.id}"/>`, `<link rel="canonical" href="${Constants.TWITTER_ROOT}/${tweet.author.screen_name}/status/${tweet.id}"/>`,
`<meta property="og:url" content="${Constants.TWITTER_ROOT}/${tweet.author.screen_name}/status/${tweet.id}"/>`, `<meta property="og:url" content="${Constants.TWITTER_ROOT}/${tweet.author.screen_name}/status/${tweet.id}"/>`,
`<meta property="theme-color" content="${tweet.color}"/>`, `<meta property="theme-color" content="${tweet.color || '#00a8fc'}"/>`,
`<meta property="twitter:card" content="${ `<meta property="twitter:card" content="${
tweet.quote?.twitter_card || tweet.twitter_card tweet.quote?.twitter_card || tweet.twitter_card
}"/>`, }"/>`,