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
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
..
controllers Fix performance on instances list in admin UI (#15282) 4 years ago
fabricators Add IP-based rules (#14963) 5 years ago
features Add submit button to the top of preferences pages (#13068) 5 years ago
fixtures Add import/export feature for bookmarks (#14956) 4 years ago
helpers Change RTL detection to rely on unicode-bidi paragraph by paragraph (#14573) 4 years ago
lib rename replies_policy enumerables (#15304) 4 years ago
mailers refactor: add email previews for WebAuthn emails (#14658) 5 years ago
models Fix admins being able to suspend their instance actor (#14567) 4 years ago
policies Add support for reversible suspensions through ActivityPub (#14989) 4 years ago
presenters Admission-based registrations mode (#10250) 6 years ago
requests Fix localization test failing due to order of locale definitions (#12393) 5 years ago
routing Move create/destroy actions for api/v1/statuses to namespace (#3678) 8 years ago
serializers/activitypub Fix account URI in UpdatePollSerializer (#11194) 6 years ago
services Improve searching for private toots from URL (#14856) 4 years ago
support Fix base64-encoded file uploads not being possible (#12748) 5 years ago
validators Improve email address validation (#14565) 5 years ago
views Remove Atom feeds and old URLs in the form of `GET /:username/updates/:id` (#11247) 6 years ago
workers Add follower synchronization mechanism (#14510) 5 years ago
rails_helper.rb Add WebAuthn as an alternative 2FA method (#14466) 5 years ago
spec_helper.rb Move rspec examples to tmp dir (#12539) 5 years ago