Add canonical URL to responses

This commit is contained in:
dangered wolf 2023-04-18 21:17:42 -04:00
parent b6144deb1c
commit 0a81ef90d6
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58

View file

@ -89,6 +89,7 @@ export const handleStatus = async (
/* Base headers included in all responses */
const headers = [
`<link rel="canonical" href="https://twitter.com/${tweet.author.screen_name}/status/${tweet.id}"/>`,
`<meta property="theme-color" content="${tweet.color}"/>`,
`<meta property="twitter:card" content="${tweet.twitter_card}"/>`,
`<meta property="twitter:site" content="@${tweet.author.screen_name}"/>`,