about summary refs log tree commit diff
path: root/streaming/index.js
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2020-09-21 18:22:54 +0200
committerThibG <thib@sitedethib.com>2020-11-12 23:44:30 +0100
commit10bd6f415df1459a03daf42a11d42e0b78bf8a1e (patch)
tree14d20731cae9af08d0ee5aa970584fc4f1e51be7 /streaming/index.js
parent3b6e27978d5d8851845c5c15bbe8162b998f59d3 (diff)
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.
Diffstat (limited to 'streaming/index.js')
0 files changed, 0 insertions, 0 deletions