akkoma/lib/pleroma
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
..
captcha de-group alias/es 2019-02-09 16:31:17 +01:00
config fix hellthread threshold deprecation warning 2019-02-04 18:26:56 +01:00
emails de-group alias/es 2019-02-09 16:31:17 +01:00
gopher de-group alias/es 2019-02-09 16:31:17 +01:00
http Use multiple hackney pools 2019-01-30 15:06:46 +01:00
instances de-group import/s 2019-02-09 16:31:17 +01:00
plugs de-group alias/es 2019-02-09 16:31:17 +01:00
upload Credo fixes: parameter consistency 2019-02-09 14:59:20 +01:00
uploaders Credo fixes: parameter consistency 2019-02-09 14:59:20 +01:00
user hide_followings was renamed to hide_followers in the FE, but never synced up in the BE 2019-02-06 22:34:44 +00:00
web WIP: Fix Twitter Cards 2019-02-11 23:59:04 +00:00
activity.ex de-group alias/es 2019-02-09 16:31:17 +01:00
application.ex use Mix.Project.Config for some Application functions 2019-02-01 14:11:23 -03:00
clippy.ex Fix clippy with one/five lines 2019-01-24 16:53:14 +01:00
config.ex update copyright years to 2019 2018-12-31 15:41:47 +00:00
emoji.ex update copyright years to 2019 2018-12-31 15:41:47 +00:00
filter.ex de-group alias/es 2019-02-09 16:31:17 +01:00
flake_id.ex Credo fixes: parameter consistency 2019-02-09 14:59:20 +01:00
formatter.ex de-group alias/es 2019-02-09 16:31:17 +01:00
html.ex HTML.Scrubber.Default: Consistency 2019-02-09 14:59:21 +01:00
instances.ex [#534] Various tweaks. Tests for Instances and Instance. 2019-01-28 15:25:06 +03:00
list.ex de-group alias/es 2019-02-09 16:31:17 +01:00
mime.ex Mime: detect RIFF formats (wave, webp, avi) 2019-02-04 17:44:41 +01:00
notification.ex Merge branch 'develop' into feature/thread-muting 2019-02-11 12:10:49 +01:00
object.ex Revert "Merge branch 'object-creation' into 'develop'" 2019-02-11 08:07:39 +00:00
object_tombstone.ex Revert Activity tombstones, add ObjectTombstone struct 2018-12-25 03:00:06 +03:00
PasswordResetToken.ex de-group alias/es 2019-02-09 16:31:17 +01:00
repo.ex update copyright years to 2019 2018-12-31 15:41:47 +00:00
reverse_proxy.ex [#534] Made federation push sender be determined basing on content instead of referer header. Updated tests. 2019-01-29 13:12:28 +03:00
stats.ex de-group alias/es 2019-02-09 16:31:17 +01:00
thread_mute.ex Refactor as per Rin's suggestions, add endpoint tests 2019-02-11 12:04:02 +01:00
upload.ex Credo fixes: parameter consistency 2019-02-09 14:59:20 +01:00
user.ex Merge branch 'fix/credo-issues' into 'develop' 2019-02-10 20:54:21 +00:00
user_invite_token.ex de-group alias/es 2019-02-09 16:31:17 +01:00