mastodon/spec/fixtures/requests
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
..
.host-meta.txt
activitypub-actor-individual.txt Support Actors/Statuses with multiple types (#7305) 2018-05-02 12:40:24 +02:00
activitypub-actor-noinbox.txt
activitypub-actor.txt Fix an error when actor json couldn't be fetched in ResolveRemoteAccountService (#4979) 2017-09-17 11:54:23 +02:00
activitypub-feed.txt Fix an error when actor json couldn't be fetched in ResolveRemoteAccountService (#4979) 2017-09-17 11:54:23 +02:00
activitypub-webfinger.txt
attachment1.txt Remove empty strings (#5732) 2017-11-17 10:52:30 +09:00
attachment2.txt Remove empty strings (#5732) 2017-11-17 10:52:30 +09:00
avatar.txt
feed.txt Writing out more tests, fixed some bugs 2016-03-20 13:03:06 +01:00
idn.txt Remove empty strings (#5732) 2017-11-17 10:52:30 +09:00
json-ld.activitystreams.txt Slightly reduce RAM usage (#7301) 2018-05-02 18:58:48 +02:00
json-ld.identity.txt
json-ld.security.txt Slightly reduce RAM usage (#7301) 2018-05-02 18:58:48 +02:00
koi8-r.txt Use charlock_holmes instead of nkf at FetchLinkCardService (#4080) 2017-07-08 22:44:31 +02:00
localdomain-feed.txt Additional specs for URI handling (#2759) 2017-05-03 20:40:14 +02:00
localdomain-hostmeta.txt Additional specs for URI handling (#2759) 2017-05-03 20:40:14 +02:00
localdomain-webfinger.txt Additional specs for URI handling (#2759) 2017-05-03 20:40:14 +02:00
oembed_invalid_xml.html
oembed_json.html
oembed_json_empty.html
oembed_json_xml.html
oembed_undiscoverable.html
oembed_xml.html
oembed_youtube.html
redirected.host-meta.txt
sjis.txt
sjis_with_wrong_charset.txt Use charlock_holmes instead of nkf at FetchLinkCardService (#4080) 2017-07-08 22:44:31 +02:00
webfinger-hacker1.txt Add rspec to further specify FollowRemoteAccountService (#2414) 2017-05-02 23:37:26 +02:00
webfinger-hacker2.txt
webfinger-hacker3.txt
webfinger.txt
windows-1251.txt Ignore low-confidence CharlockHolmes guesses when parsing link cards (#9510) 2018-12-17 19:19:45 +01:00