forked from AkkomaGang/akkoma
ac7ef0999d
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 |
||
---|---|---|
.. | ||
activity_pub | ||
admin_api | ||
channels | ||
common_api | ||
federator | ||
http_signatures | ||
mastodon_api | ||
media_proxy | ||
metadata | ||
nodeinfo | ||
oauth | ||
ostatus | ||
push | ||
rich_media | ||
salmon | ||
templates | ||
twitter_api | ||
views | ||
web_finger | ||
websub | ||
xml | ||
chat_channel.ex | ||
controller_helper.ex | ||
endpoint.ex | ||
gettext.ex | ||
metadata.ex | ||
router.ex | ||
streamer.ex | ||
uploader_controller.ex | ||
web.ex |