Maybe this post would be more at home on a lemmy.ml community, or on github, but this place is my home and I feel like I’d like to get opinions here first :o)
Right now, there is no way to make an instance agnostic link for a post or comment, like you can do with users or communities. Each instance assigns its own number to posts and comments, and there isn’t really an easy way to find a post or comment on one instance when starting from another.
For example, if I get a lemmy.world link to a post in a lemmy.world community, in order for me to comment from lemm.ee I would first have to go to lemm.ee/c/community@lemmy.world, then find the post in there manually. If I want to reply to a specific comment, I would have to find the post on lemm.ee in this way, then also search that thread for the comment. If you’re looking for an old post with a lot of comments, this can be quite challenging.
Instead, I think lemmy needs to revise how it numbers comments and posts, using the same system used for users and communities. Rather than every instance using a different number, they should use the federated host’s number followed by @hostinstance. The local user would still see the original federated link, but users from other instances would see it in their own instance with a tag for the federated host instance. This way, anyone could easily edit any link to make it work in their own instance (provided that link has already been federated in their own instance).
Here is a specific example I wrote in a comment elsewhere:
For a specific example, to me, this post is lemm.ee/post/1726780. In the original, federated instance, the post is lemmy.ml/post/2308622. Instead, it should appear to me as lemm.ee/post/2308622@lemmy.ml.
Your comment, to me, is lemm.ee/comment/1409174. The federated link is lemmy.one/comment/1393053. This is the link you see, and should continue to see, but I should see lemm.ee/comment/1393053@lemmy.one.
Using the instance in the numbering scheme means each federated host instance manages its own numbering while ensuring there will never be a clash between instances. lemm.ee/comment/1393053@lemmy.one and lemm.ee/comment/1393053 would refer to two completely different comments. This information is already being transmitted in the process of federation, so it’s just a matter of tagging the data when it’s received.
Zeus@lemm.ee 1 year ago
honestly i think it should be more like this (or this
i know people don’t like to talk about reddit, but the URLs were perfect. i could see whether a post was the one i wanted just from the url, and if i wanted a shorter link i could just omit the title and it would soft redirect
TWeaK@lemm.ee 1 year ago
I agree with that, however I think that’s a separate issue to federation and instance agnostic links. Fixing both at the same time sure would be efficient, though.
Zeus@lemm.ee 1 year ago
that’s a fair point, i guess i just saw that and my mind jumped to other url related points
it would be nice to have them both solved together though
yeah they’re not in the lemmy markdown cheat sheet, but they’re supported by markdown-it, the library that lemmy uses