akkoma/lib/pleroma/web
Mark Felder ac7ef0999d 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
2019-02-11 23:59:04 +00:00
..
activity_pub Filter summary in keywordpolicy 2019-02-11 21:35:40 +03:00
admin_api Merge branch 'cleanup/admin-api-useless-if' into 'develop' 2019-01-01 13:48:59 +00:00
channels update copyright years to 2019 2018-12-31 15:41:47 +00:00
common_api Merge branch 'develop' into feature/thread-muting 2019-02-11 12:10:49 +01:00
federator de-group alias/es 2019-02-09 16:31:17 +01:00
http_signatures de-group alias/es 2019-02-09 16:31:17 +01:00
mastodon_api Merge branch 'develop' into feature/thread-muting 2019-02-11 12:10:49 +01:00
media_proxy Make credo happy 2019-02-09 14:59:20 +01:00
metadata WIP: Fix Twitter Cards 2019-02-11 23:59:04 +00:00
nodeinfo Merge branch 'fix/credo-issues' into 'develop' 2019-02-10 20:54:21 +00:00
oauth de-group import/s 2019-02-09 16:31:17 +01:00
ostatus de-group alias/es 2019-02-09 16:31:17 +01:00
push de-group alias/es 2019-02-09 16:31:17 +01:00
rich_media rich media: tighten fetching timeouts and size limits 2019-02-10 21:54:08 +00:00
salmon de-group alias/es 2019-02-09 16:31:17 +01:00
templates Add responsive features to layout 2019-02-02 13:40:34 +03:00
twitter_api Revert "Merge branch 'object-creation' into 'develop'" 2019-02-11 08:07:39 +00:00
views update copyright years to 2019 2018-12-31 15:41:47 +00:00
web_finger de-group alias/es 2019-02-09 16:31:17 +01:00
websub de-group alias/es 2019-02-09 16:31:17 +01:00
xml update copyright years to 2019 2018-12-31 15:41:47 +00:00
chat_channel.ex update copyright years to 2019 2018-12-31 15:41:47 +00:00
controller_helper.ex [#534] Refactoring / tweaks per MR review. 2019-01-28 11:03:52 +03:00
endpoint.ex Use url() instead of static_url in Endpoint.websocket_url() 2019-02-01 22:35:19 +03:00
gettext.ex update copyright years to 2019 2018-12-31 15:41:47 +00:00
metadata.ex Use object instead of activity for metadata 2019-01-18 09:32:52 +03:00
router.ex Merge branch 'develop' into feature/thread-muting 2019-02-08 12:44:02 +01:00
streamer.ex de-group alias/es 2019-02-09 16:31:17 +01:00
uploader_controller.ex Make credo happy 2019-02-09 14:59:20 +01:00
web.ex de-group import/s 2019-02-09 16:31:17 +01:00