element-synapse/synapse/media
Joshua Goins 0395b71e25
Fix Mastodon URL previews not showing anything useful (#19231)
Fixes #18444. Inside of UrlPreviewer, we need to combine two dicts (one
from oEmbed, and one from OpenGraph metadata in the HTML) and in Mastodon's case they were very
different.

Single Page Applications (SPAs) seem to sometimes provide better information in the OpenGraph tags
than the oEmbed stubs, because the oEmbed stubs are filled in with JavaScript that Synapse does
not execute.

This change improves previews on Mastodon and YouTube (for the same reason).

Tested to not regress previews of Twitter or GitHub.
2025-12-16 13:02:29 +00:00
..
_base.py Fix support for older versions of zope-interface (#19274) 2025-12-12 15:34:13 +00:00
filepath.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
media_repository.py Allow admins to bypass the quarantine check on media downloads (#19275) 2025-12-15 17:23:33 +00:00
media_storage.py Port Clock functions to use Duration class (#19229) 2025-12-01 13:55:06 +00:00
oembed.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
preview_html.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
storage_provider.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
thumbnailer.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
url_previewer.py Fix Mastodon URL previews not showing anything useful (#19231) 2025-12-16 13:02:29 +00:00