mastodon/app
Claire ec059317fa
Fix some link previews being incorrectly generated from other prior links (#16885)
* Add tests

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

PR #12403 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
..
chewy
controllers Add remove from followers api (#16864) 2021-10-18 12:02:35 +02:00
helpers Add Northern Kurdish locale as requested by translator. It already has a project started on Crowdin. (#16548) 2021-10-14 21:02:54 +02:00
javascript Enhance dashboard styles (#16884) 2021-10-21 06:24:34 +02:00
lib Fix retention rate computation (#16854) 2021-10-14 22:20:37 +02:00
mailers
models Add remove from followers api (#16864) 2021-10-18 12:02:35 +02:00
policies
presenters
serializers
services Fix some link previews being incorrectly generated from other prior links (#16885) 2021-10-21 20:39:35 +02:00
validators Minor memory optimizations (#16507) 2021-10-14 21:04:57 +02:00
views
workers