aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/metadata/utils.ex
AgeCommit message (Collapse)Author
2022-09-03Metadata/Utils: use summary as description if setHélène
When generating OpenGraph and TwitterCard metadata for a post, the summary field will be used first if it is set to generate the post description.
2022-02-25Copyright bump for 2022Sean King
2021-06-09Remove Metadata.Utils.attachment_url/1Mark Felder
This was a wasteful shortcut to MediaProxy.preview_url/1 and we don't always want the preview_url in the metadata anyway.
2021-05-29Break out activity-specific HTML functions into Pleroma.Activity.HTMLAlex Gleason
Fixes cycles in lib/pleroma/ecto_type/activity_pub/object_validators/safe_text.ex
2021-01-13Bump Copyright to 2021Haelwenn (lanodan) Monnier
grep -rl '# Copyright © .* Pleroma' * | xargs sed -i 's;Copyright © .* Pleroma .*;Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>;'
2020-08-22Use the image thumbnail for rich metadata (OGP/Twittercards)Mark Felder
2020-03-02Bump copyright years of files changed after 2020-01-07Haelwenn (lanodan) Monnier
Done via the following command: git diff fcd5dd259a1700a045be902b43391b0d1bd58a5b --stat --name-only | xargs sed -i '/Pleroma Authors/c# Copyright © 2017-2020 Pleroma Authors <https:\/\/pleroma.social\/>'
2020-01-14Merge branch 'develop' into feature/tag_feedMaksim Pechnikov
2020-01-03fixed Metadata.Utils.scrub_html_and_truncateMaksim Pechnikov
2019-12-18add tag feedsMaksim Pechnikov
2019-08-30added Emoji.FormatterMaksim Pechnikov
2019-07-12Pleroma.Web.Metadata - testsMaksim
2019-04-05Refactor html caching functions to have a key instead of a module, use more ↵rinpatch
correct terminology and fix summaries in mastoapi
2019-03-13[Credo] fix Credo.Check.Readability.AliasOrderHaelwenn (lanodan) Monnier
2019-03-04Add status text to notifications (mentions and reposts)Maxim Filippov
2019-02-11WIP: Fix Twitter CardsMark Felder
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