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) 4 years ago
features
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
requests
routing
serializers/activitypub
services Improve searching for private toots from URL (#14856) 4 years ago
support
validators Improve email address validation (#14565) 5 years ago
views
workers Add follower synchronization mechanism (#14510) 4 years ago
rails_helper.rb Add WebAuthn as an alternative 2FA method (#14466) 5 years ago
spec_helper.rb