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/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.
3 years ago
..
.host-meta.txt
activitypub-actor-individual.txt Support Actors/Statuses with multiple types (#7305) 7 years ago
activitypub-actor-noinbox.txt Fix an error when actor json couldn't be fetched in ResolveRemoteAccountService (#4979) 8 years ago
activitypub-actor.txt Fix an error when actor json couldn't be fetched in ResolveRemoteAccountService (#4979) 8 years ago
activitypub-feed.txt Fix an error when actor json couldn't be fetched in ResolveRemoteAccountService (#4979) 8 years ago
activitypub-webfinger.txt Fix an error when actor json couldn't be fetched in ResolveRemoteAccountService (#4979) 8 years ago
attachment1.txt Remove empty strings (#5732) 7 years ago
attachment2.txt Remove empty strings (#5732) 7 years ago
avatar.txt Remove empty strings (#5732) 7 years ago
feed.txt
idn.txt Remove empty strings (#5732) 7 years ago
json-ld.activitystreams.txt Slightly reduce RAM usage (#7301) 7 years ago
json-ld.identity.txt Slightly reduce RAM usage (#7301) 7 years ago
json-ld.security.txt Slightly reduce RAM usage (#7301) 7 years ago
koi8-r.txt Use charlock_holmes instead of nkf at FetchLinkCardService (#4080) 8 years ago
localdomain-feed.txt
localdomain-hostmeta.txt
localdomain-webfinger.txt
oembed_invalid_xml.html
oembed_json.html Append '.test' to hostname in stub data (#7260) 7 years ago
oembed_json_empty.html Fix undefined method error in sidekiq (#9807) 6 years ago
oembed_json_xml.html Append '.test' to hostname in stub data (#7260) 7 years ago
oembed_undiscoverable.html
oembed_xml.html Append '.test' to hostname in stub data (#7260) 7 years ago
oembed_youtube.html Fix some link previews being incorrectly generated from other prior links (#16885) 3 years ago
redirected.host-meta.txt
sjis.txt Use charlock_holmes instead of nkf at FetchLinkCardService (#4080) 8 years ago
sjis_with_wrong_charset.txt Use charlock_holmes instead of nkf at FetchLinkCardService (#4080) 8 years ago
webfinger-hacker1.txt
webfinger-hacker2.txt
webfinger-hacker3.txt Added FetchRemoteAccountService spec (#6456) 7 years ago
webfinger.txt Remove Salmon and PubSubHubbub (#11205) 6 years ago
windows-1251.txt Ignore low-confidence CharlockHolmes guesses when parsing link cards (#9510) 6 years ago