Improve opengraph embeds
authorio <eiy7rongai0g@paperboats.net>
Fri, 4 Jun 2021 04:15:54 +0000 (04:15 +0000)
committerio <eiy7rongai0g@paperboats.net>
Fri, 4 Jun 2021 05:33:35 +0000 (05:33 +0000)
commit2c401dafa1105b73f4b4141f96e8414612625420
tree0f620620671f97f27c79455c82dccafd1d0364cf
parenta5dce42c85de2d8316541348335d1dd49c2c3d89
Improve opengraph embeds

This brings them more in line with Mastodon.
- Deduplicates display name from the title and content
- Removes arbitrary limits on the size of the embedded image
- Removes angled double quotes from embed descriptions. These would normally just indicate that the content is a quote, but that is already implied by the content being in an embed.
lib/pleroma/web/metadata/providers/open_graph.ex
lib/pleroma/web/metadata/providers/twitter_card.ex
test/pleroma/web/metadata/providers/twitter_card_test.exs