Unable to fetch notes by searching the URL
Environment
- Installation type (OTP or From Source): OTP
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): 2.3.0-1-gb221d77a
- Elixir version (
elixir -v
for from source installations, N/A for OTP): N/A - Operating system: Ubuntu 20.04.1
- PostgreSQL version (
psql -V
): 12.7
Bug description
No status was found at all after searching the URL of a note in pleroma-fe. I have tested this against notes from pleroma, mastodon and misskey on my and my friend's pleroma instances as well as on fedi.absturztau.be.
This might be relevant to #2496 , as the log shows:
[debug] Could not decode user at fetch https://mstdn.jp/@Cicadidae106358741406499889, "Object has been deleted"
But it is still quite weird that pleroma was trying to fetch https://mstdn.jp/@Cicadidae106358741406499889
while I searched https://mstdn.jp/@Cicadidae/106358741406499889
:
[info] GET /api/v2/search
[debug] GET /api/v2/search
[debug] Processing with Pleroma.Web.MastodonAPI.SearchController.search2/2
Parameters: %{"q" => "https://mstdn.jp/@Cicadidae/106358741406499889", "resolve" => "true", "with_relationships" => "true"}
...
[debug] Fetching object https://mstdn.jp/@Cicadidae106358741406499889 via AP
Expected behavior
Searching the URL of a note should return the corresponding note (maybe as the only result?). It might be even better if we have a search operator for this to ask pleroma to just fetch the specific note, instead of searching it against users or tags (as may be relevant to #2051 and #2633 ), for example:
url:https://mstdn.jp/@Cicadidae/106358741406499889