1
0
Commit Graph

1 Commits

Author SHA1 Message Date
Claire
ec059317fa
Fix some link previews being incorrectly generated from other prior links ()
* Add tests

* Fix some link previews being incorrectly generated from different prior links

PR  added a cache to avoid redundant queries when the OEmbed endpoint can
be guessed from the URL. This caching mechanism is not perfectly correct as
there is no guarantee that all pages from a given domain share the same
OEmbed provider endpoint.

This PR prevents the FetchOEmbedService from caching OEmbed endpoint that
cannot be generalized by replacing a fully-qualified URL from the endpoint's
parameters, greatly reducing the number of incorrect cached generalizations.
2021-10-21 20:39:35 +02:00