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/app/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
concerns Fix activity not being signed (#13948) 5 years ago
keys Add E2EE API (#13820) 5 years ago
account_search_service.rb Fix following restriction not working when exact match in account search (#14394) 5 years ago
after_block_domain_from_account_service.rb Fix account domain block not properly unfollowing accounts from domain (#14304) 5 years ago
after_block_service.rb Refactor feed manager (#14761) 5 years ago
after_unallow_domain_service.rb Change account suspensions to be reversible by default (#14726) 5 years ago
app_sign_up_service.rb Add IP-based rules (#14963) 4 years ago
authorize_follow_service.rb
backup_service.rb Add E2EE API (#13820) 5 years ago
base_service.rb
batched_remove_status_service.rb Fix not publishing update of remote timeline (#13745) 5 years ago
block_domain_service.rb Add support for reversible suspensions through ActivityPub (#14989) 4 years ago
block_service.rb
bootstrap_timeline_service.rb
clear_domain_media_service.rb Make domain block/silence/reject-media code more robust (#13424) 5 years ago
delete_account_service.rb Undo outgoing follows when suspending a remote account (#15188) 4 years ago
deliver_to_device_service.rb Add E2EE API (#13820) 5 years ago
fan_out_on_write_service.rb Fix DMs not appearing into timelines (#15182) 4 years ago
favourite_service.rb Add option to be notified when a followed user posts (#13546) 4 years ago
fetch_link_card_service.rb Bump rubocop from 0.86.0 to 0.88.0 (#14412) 5 years ago
fetch_oembed_service.rb
fetch_remote_status_service.rb
fetch_resource_service.rb Fix not being able to resolve public resources in development environment (#13505) 5 years ago
follow_service.rb Add option to be notified when a followed user posts (#13546) 4 years ago
import_service.rb Add import/export feature for bookmarks (#14956) 4 years ago
move_service.rb
mute_service.rb Add duration parameter to muting. (#13831) 4 years ago
notify_service.rb Add option to be notified when a followed user posts (#13546) 4 years ago
post_status_service.rb
precompute_feed_service.rb Refactor feed manager (#14761) 5 years ago
process_hashtags_service.rb
process_mentions_service.rb Fix followers synchronization mechanism not being triggered on mentions (#15026) 4 years ago
reblog_service.rb Add option to be notified when a followed user posts (#13546) 4 years ago
reject_follow_service.rb
remove_status_service.rb Fix deletes not reaching every server that interacted with status (#15200) 4 years ago
report_service.rb Add indication to admin UI of whether a report has been forwarded (#13237) 4 years ago
resolve_account_service.rb Fix webfinger redirect handling in ResolveAccountService (#15187) 4 years ago
resolve_url_service.rb Improve searching for private toots from URL (#14856) 4 years ago
search_service.rb Fix hashtag search performing account search as well (#13758) 5 years ago
suspend_account_service.rb Add cache buster feature for media files (#15155) 4 years ago
tag_search_service.rb
unallow_domain_service.rb Fix removing allowed domains being done synchronously (#14302) 5 years ago
unblock_domain_service.rb Add support for reversible suspensions through ActivityPub (#14989) 4 years ago
unblock_service.rb
unfavourite_service.rb
unfollow_service.rb
unmute_service.rb
unsuspend_account_service.rb Add cache buster feature for media files (#15155) 4 years ago
update_account_service.rb Bump rubocop from 0.86.0 to 0.88.0 (#14412) 5 years ago
verify_link_service.rb
vote_service.rb