virtulis / substitoot

A transparent toot fetcher for Mastodon. Loads missing replies to boosted toots in your feed directly from the source server.
https://substitoot.kludge.guru/
MIT License
34 stars 1 forks source link

FR: fetch user if not found #4

Open thibaultmol opened 6 months ago

thibaultmol commented 6 months ago

If someone goes to a url on their instance for a user that is not known to that instance, Mastodon's ui doesn't automatically try and fetch that user (for some reason). Instead you get a 404 page.

It would be nice if this extension could then also try and tell the instance to fetch that user.

(so what I mean is: take some random user that your instance doesn't know, then make that url on your instance. I tried it on your instance, but i guess Glitch will just redirect to the remote users's instance. I took a random user that my instance doesn't know: https://en.osm.town/@C_J@tech.lgbt if you go to that page, it's a 404. If I were to search that user, my instance would fetch it. But not just by visiting the url like that)

virtulis commented 6 months ago

Hi,

I'm not really aware in what scenario you could organically end up on an URL like that.

Am I missing something? :upside_down_face:

I think I used to try and re-search 404 links back when I did the fake ID shenanigans, but now I didn't think that's something that should happen.

I am considering attempting to resolve clicked remote links to local instance (as a separate feature), could probably do the same for users.

thibaultmol commented 6 months ago

The Streetpass extension creates these kinds of situations for me

virtulis commented 6 months ago

Ha!

I do think it's something that Streetpass should solve itself, but ok, I'll try adding that since I already intercept the user get call anyway.