You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/spec
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.
3 years ago
..
controllers
fabricators
features
fixtures Fix some link previews being incorrectly generated from other prior links (#16885) 3 years ago
helpers
lib
mailers
models
policies
presenters
requests
routing
serializers/activitypub
services Fix some link previews being incorrectly generated from other prior links (#16885) 3 years ago
support
validators
views
workers
rails_helper.rb
spec_helper.rb