Be more lenient when parsing the version for oEmbed responses. (#11065)

This commit is contained in:
Patrick Cloke 2021-10-13 07:00:07 -04:00 committed by GitHub
parent 2a2b189130
commit 732bbf6737
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 60 additions and 8 deletions

View file

@ -140,7 +140,7 @@ class PreviewUrlResource(DirectServeJsonResource):
self.primary_base_path = media_repo.primary_base_path
self.media_storage = media_storage
self._oembed = OEmbedProvider(hs, self.client)
self._oembed = OEmbedProvider(hs)
# We run the background jobs if we're the instance specified (or no
# instance is specified, where we assume there is only one instance