mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-05 10:30:55 +01:00
Add canonical URL to responses
This commit is contained in:
parent
b6144deb1c
commit
0a81ef90d6
1 changed files with 1 additions and 0 deletions
|
@ -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}"/>`,
|
||||
|
|
Loading…
Add table
Reference in a new issue