aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2019-02-11 23:59:04 +0000
committerMark Felder <feld@FreeBSD.org>2019-02-11 23:59:04 +0000
commitac7ef0999d70145ed5217258a4908eba609d68de (patch)
treed91e5cf5fc9a109d62946c16b6475af9d8e94a0c /test
parent39548c38243c6f37fb1f4a3d758b1bab662d7d7d (diff)
downloadpleroma-ac7ef0999d70145ed5217258a4908eba609d68de.tar.gz
WIP: Fix Twitter Cards
Twitter cards were not passing any useful metadata. A few things were being handled on Twitter's end by trying to match OpenGraph tags with their own, but it wasn't working at all for media. This is an attempt to fix that. Common functions have been pulled out of opengraph and put into utils. Twitter's functionality was entirely replaced with a direct copy of Opengraph's and then modified as needed. Profiles are now represented as Summary Cards Posts with images are now represented as Summart with Large Image Cards Posts with video and audio attachments are represented as Player Cards. This now passes the Twitter Card Validator. Validator and Docs are below https://cards-dev.twitter.com/validator https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/abouts-cards
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions