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/services
ThibG b1feb47055
Improve searching for private toots from URL (#14856)
* Improve searching for private toots from URL

Most of the time, when sharing toots, people use the toot URL rather than
the toot URI, which makes sense since it is the user-facing URL.

In Mastodon's case, the URL and URI are different, and Mastodon does not
have an index on URL, which means searching a private toot by URL is done
with a slow query that will only succeed for very recent toots.

This change gets rid of the slow query, and attempts to guess the URI from
URL instead, as Mastodon's are predictable.

* Add tests

* Only return status with guessed uri if url matches

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
4 years ago
..
activitypub Add support for reversible suspensions through ActivityPub (#14989) 4 years ago
account_search_service_spec.rb Add more accurate account search (#11537) 6 years ago
after_block_domain_from_account_service_spec.rb
after_block_service_spec.rb
app_sign_up_service_spec.rb Add IP-based rules (#14963) 4 years ago
authorize_follow_service_spec.rb Remove Salmon and PubSubHubbub (#11205) 6 years ago
batched_remove_status_service_spec.rb Remove WebSub subscriptions (#11303) 6 years ago
block_domain_service_spec.rb
block_service_spec.rb Remove Salmon and PubSubHubbub (#11205) 6 years ago
bootstrap_timeline_service_spec.rb Fix BootstrapTimelineService crashing when bootstrapped accounts are invalid (#12037) 5 years ago
clear_domain_media_service_spec.rb Make domain block/silence/reject-media code more robust (#13424) 5 years ago
delete_account_service_spec.rb Change account suspensions to be reversible by default (#14726) 5 years ago
fan_out_on_write_service_spec.rb Refactor how public and tag timelines are queried (#14728) 5 years ago
favourite_service_spec.rb Remove Salmon and PubSubHubbub (#11205) 6 years ago
fetch_link_card_service_spec.rb Fix FetchLinkCardServices crashing on a tags without a target (#12159) 5 years ago
fetch_oembed_service_spec.rb Add cache for OEmbed endpoints to avoid extra HTTP requests (#12403) 5 years ago
fetch_remote_status_service_spec.rb Clean up OStatus-related codepaths (#12173) 5 years ago
fetch_resource_service_spec.rb Fix not being able to resolve public resources in development environment (#13505) 5 years ago
follow_service_spec.rb Change silences to always require approval on follow (#11975) 6 years ago
import_service_spec.rb Add import/export feature for bookmarks (#14956) 4 years ago
mute_service_spec.rb
notify_service_spec.rb Add option to be notified when a followed user posts (#13546) 5 years ago
post_status_service_spec.rb Fix media not being marked sensitive when client sets a CW but no text (#13277) 5 years ago
precompute_feed_service_spec.rb
process_mentions_service_spec.rb Fix IDN mentions not being processed, IDN domains not being rendered (#12715) 5 years ago
reblog_service_spec.rb Remove Salmon and PubSubHubbub (#11205) 6 years ago
reject_follow_service_spec.rb Remove Salmon and PubSubHubbub (#11205) 6 years ago
remove_status_service_spec.rb Remove WebSub subscriptions (#11303) 6 years ago
report_service_spec.rb
resolve_account_service_spec.rb Fix webfinger redirect handling in ResolveAccountService (#15187) 4 years ago
resolve_url_service_spec.rb Improve searching for private toots from URL (#14856) 4 years ago
search_service_spec.rb Fix hashtag search performing account search as well (#13758) 5 years ago
unallow_domain_service_spec.rb Fix various warnings in rspec (#14729) 5 years ago
unblock_domain_service_spec.rb Add domain block notes (#11515) 6 years ago
unblock_service_spec.rb Remove Salmon and PubSubHubbub (#11205) 6 years ago
unfollow_service_spec.rb Remove Salmon and PubSubHubbub (#11205) 6 years ago
unmute_service_spec.rb
update_account_service_spec.rb Change silences to always require approval on follow (#11975) 6 years ago
verify_link_service_spec.rb Add noopener and/or noreferrer (#12202) 5 years ago