nyastodon/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>
2020-12-17 06:51:49 +01:00
..
controllers Fix performance on instances list in admin UI (#15282) 2020-12-14 09:06:34 +01:00
fabricators
features
fixtures
helpers Change RTL detection to rely on unicode-bidi paragraph by paragraph (#14573) 2020-12-15 12:56:43 +01:00
lib rename replies_policy enumerables (#15304) 2020-12-09 04:34:17 +01:00
mailers
models Fix admins being able to suspend their instance actor (#14567) 2020-12-15 17:23:58 +01:00
policies
presenters
requests
routing
serializers/activitypub
services Improve searching for private toots from URL (#14856) 2020-12-17 06:51:49 +01:00
support
validators
views
workers
rails_helper.rb
spec_helper.rb