glitchier-soc/spec
Claire 63eb19b5e0 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
..
controllers Add remove from followers api (#16864) 2021-10-18 12:02:35 +02:00
fabricators Add feature to automatically delete old toots (#16529) 2021-08-09 23:11:50 +02:00
features
fixtures Fix some link previews being incorrectly generated from other prior links (#16885) 2021-10-21 20:39:35 +02:00
helpers
lib Change routing paths to use usernames in web UI (#16171) 2021-09-26 05:46:13 +02:00
mailers
models Add remove from followers api (#16864) 2021-10-18 12:02:35 +02:00
policies
presenters
requests
routing
serializers/activitypub
services Fix some link previews being incorrectly generated from other prior links (#16885) 2021-10-21 20:39:35 +02:00
support
validators Add canonical e-mail blocks for suspended accounts (#16049) 2021-04-17 03:14:25 +02:00
views Fix error when rendering public pages with media attachments (#16763) 2021-10-13 15:27:19 +02:00
workers Fix followers synchronization mechanism not working when URI has empty path (#16510) 2021-08-11 17:48:42 +02:00
rails_helper.rb
spec_helper.rb