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/validatorhttps://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/abouts-cards
* origin/develop: (280 commits)
Mark streaming feature for Apps in README.md
Update README.md
hide_followings was renamed to hide_followers in the FE, but never synced up in the BE
tests: add a rich media card that contains all relevant fields
test: add some regression tests for the rich media card rendering
mastodon api: rich media: don't clobber %URI struct with a string
adds a couple of explicit examples for ExSyslogger
Fix if clause in activity_pub user_view
rids the duplicate timestamp from default ExSyslogger config
update frontend
Allow to configure visibility for admin and moderator badges
Add is_admin and is_moderator boolean fields to the user view
rich media: parser: reject any data which cannot be explicitly encoded into JSON
test: twitterapi: fix another possible test failure case
test: twitterapi: fix the test breakage for real
mastodon api: fix rendering of cards without image URLs (closes#597)
Fix SQL
ARGLE GARBLE
html: don't attempt to parse nil content
activitypub: transmogrifier: fix bare tags
...