Fix twitter card remapping
This commit is contained in:
parent
edbb44f72f
commit
9f97c523d6
1 changed files with 6 additions and 6 deletions
12
server.py
12
server.py
|
@ -138,12 +138,12 @@ URL_OG_TAGS = [
|
||||||
"og:audio:secure_url"
|
"og:audio:secure_url"
|
||||||
]
|
]
|
||||||
TWITTER_MAPPING = {
|
TWITTER_MAPPING = {
|
||||||
"twitter:site": "site_name",
|
"twitter:site": "og:site_name",
|
||||||
"twitter:creator": "site_name",
|
"twitter:creator": "og:site_name",
|
||||||
"twitter:image": "image",
|
"twitter:image": "og:image",
|
||||||
"twitter:title": "title",
|
"twitter:title": "og:title",
|
||||||
"twitter:image:width": "image:width",
|
"twitter:image:width": "og:image:width",
|
||||||
"twitter:image:height": "image:height",
|
"twitter:image:height": "og:image:height",
|
||||||
}
|
}
|
||||||
|
|
||||||
if Path.cwd() == Path("/app"):
|
if Path.cwd() == Path("/app"):
|
||||||
|
|
Loading…
Reference in a new issue