Link to user bug?
from peter@discuss.petersanchez.com to azorius on 18 Aug 2023 19:18
https://discuss.petersanchez.com/g/azorius@azorius.net/p/b7dP8TRwWfMNwKPS9B-Link-to-user-bug

Got up and running with Azorius and I notice that the link to the post author raises a 404 on azorius software. Ie, https://azorius.net/u/tedu@azorius.net is 404 but https://azorius.net/u/tedu is not. However the linking on the rendered pages is using the user@domain syntax.

Assuming maybe in the findperson function just check if the @domain is the same as the configured hostname and use the username instead for this case?

#azorius

threaded - newest

tedu on 18 Aug 2023 19:39 next collapse

I got tired of bots crawling the user pages for remote users. So anything that's @remote is 404 unless you're logged in. It should maybe not be linked, that's an oversight in the template. Have to find all the places.

Big picture, I'm still debating how to handle search engines and remote content. On the one hand, I think forum posts should be searchable, so don't want a blanket robots.txt. But I don't want to become the authority for remote content by accident. I think there's a <link rel> tag to be use. That should be good enough.

Other ideas I had were putting all remote content under an /x/ route, but it starts getting complicated using all the right urls in all the right places. Or maybe not? I think it's mostly abstracted. Could be done.

The other evil idea is to send back 404 status codes, but still return the content, so it looks like a normal page to browsers but engines will ignore it. I don't know if I want to open this rabbit hole.

So, short answer is, somewhere in the template, if you're not logged in, those user links should not be added.

But I'm curious where you see a link to tedu@azorius.net on azorius.net. That should not happen.

peter@discuss.petersanchez.com on 18 Aug 2023 22:42 collapse

Hrmm, I'm not quite sure how I saw it. I may have been toying with the URL based on the /u/name@domain scheme locally with my own account and got the 404. Then I tried yours but obviously I'm not logged in to your instance so it's 404'ing.

I just did some clicking around trying to find the link and I can't, it all seems to link directly to my local instance which does not 404 as I'm logged in and you're a remote account.

So maybe my bug was just me being too curious and toying around.