this post was submitted on 07 Aug 2023
29 points (100.0% liked)

Fediverse

28520 readers
466 users here now

A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).

If you wanted to get help with moderating your own community then head over to [email protected]!

Rules

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration), Search Lemmy

founded 2 years ago
MODERATORS
 

cross-posted from: https://lemmy.nz/post/825036

What is this called? A banglink?

Anyway, I want to banglink a post.

I know I can banglink a community: [email protected]

But what about for this post?

https://aussie.zone/post/132034

I tried several different ways but none worked:

!aussie.zone/post/132034

!aussie.zone/c/environment/post/132034

[email protected]/post/132034

!environment/post/[email protected]

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago (2 children)

They can try add more syntax. Maybe extend the @instance paradigm to posts too, so /post/[email protected] asks for post #123 at foo.bar instead of locally. They can even make it redirect to a local federated post if it's already federated to local.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

@amanaftermidnight
I think we need some way to paste a URL from any instance into a comment that when rendered on any user's page (whoever is reading it, on any instance) will link to:

  • if the item already exists locally: the user's local version of the item
  • if the item does not exist locally: the prefilled search page to go find the post

The person who is writing the comment should have a low-BS way of indicating this is what they want to do.

The easiest way I think would be to use the whole URL prefixed by something. Not a ! because that already has a different meaning. I was thinking of something like /local/ or abbreviated to /l/ because special characters aren't as easily available on all keyboards, they already do other things etc.

If I wanted to link to this current thread I would do it like this:

/l/https://kbin.social/m/[email protected]/t/313780/link-for-posts

I am thinking that when my kbin instance sees that, it would be triggered to locate "the fediverse url" for the post, which it already has available on anything it displays. In this case it would be https://lemmy.nz/post/825037. It would remove the kbin.social URL and replace it with the lemmy.nz URL. So then when it comes to rendering on any other instance, that instance will have the "real" location to work with.

if interested, here is a thread/xpost which elaborates a bit more on the current situations and both have good comments. I got talked out of the idea of a UUID in favor of something like the above.

Though I think there would be all kinds of complex use cases to work out. Like I don't only want to be able to do this for URLs that are on kbin.social, so there would be extra work in that case and I don't know enough (anything) about the internals to suggest how that could happen.

@luthis @instance @willya

[–] [email protected] 0 points 1 year ago (1 children)

The example you show here would give the community 123 on foo.bar. The OP used quite a few common sense examples.

[–] [email protected] 1 points 1 year ago (1 children)

it's a theoretical example for a mechanism that doesn't yet exist. you try it now of course it's not acting like how I proposed.

[–] [email protected] -1 points 1 year ago (1 children)

How you proposed would break the community linking is all I was saying.

[–] [email protected] 1 points 1 year ago

I suppose you have never done any server routing coding and has no idea what I'm talking about. I don't have the gift of eli5-ing this, so I have nothing more to say.