diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-10-21 20:39:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-21 20:39:35 +0200 |
commit | ec059317fad4fc5f1ed45a72cbae48edafcb586d (patch) | |
tree | 65ed76eb93e6119fd8166010d4328961b1b3b20f /app/controllers/statuses_cleanup_controller.rb | |
parent | b58d32cfe259d95ef28a61cbd863336350f2a3d9 (diff) |
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.
Diffstat (limited to 'app/controllers/statuses_cleanup_controller.rb')
0 files changed, 0 insertions, 0 deletions