this post was submitted on 03 Aug 2023
36 points (100.0% liked)

Fediverse

27828 readers
313 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 !moderators@lemmy.world!

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 1 year ago
MODERATORS
 

It often happens that a given lemmy link didn't match with my own login from another instance. This causes troubles to comment and participate in the thread. This is what I have learned so far. Is there a better method of doing this? Browser extension suggestions are welcome.

Context:

  • Have an account @username on instance lemmy.test and being logged in
  • Given a lemmy link lemmy.example.com/post/12345
  • Want to comment as @username@lemmy.test on lemmy.example.com/post/12345

Expected behavior:

  • Opening links from lemmy.example.com automatically recognizes login from lemmy.test, commenting and voting done without problems

Actual behavior:

  • Instance lemmy.example.com expects logins only from its own server, not other federated servers like lemmy.test

Manual fix (for web browsers):

  • Check for the "federation link" (the icon with five-colored star, is there a name for this?) from linked URL's page. (If the icon does not exist, check Observations below)
  • Open "search" from own instance (lemmy.test > search)
  • Enter the "federation link" at search bar.
  • First result should be a URL that's compatible with the own instance: e.g. lemmy.test/post/98765

Observations:

  • If the link and its OP shares the same instance domain (@user@lemmy.example.com posting to [!community@lemmy.example.com](/c/community@lemmy.example.com)), then the federation link should be the link itself (please confirm if this is actually true).
  • If not, then the "federation link" has to be obtained.
  • INCLUDE HTTPS before domain, otherwise it won't appear in the search:

https://lemmy.example.com/post/12345 OK
lemmy.example.com/post/12345 NOT OK

top 11 comments
sorted by: hot top controversial new old
[–] AbouBenAdhem@lemmy.world 5 points 1 year ago

Conceptually, it’s similar to an RSS feed: you can’t give someone a link to a feed that will automatically open in their own feed reeder; they need to go to their own reader first and paste the url there. The only exception is if their browser is configured to recognize feeds and open them in their default reader—and I think that’s going to have to be the solution for fediverse content: browsers will need to be updated, or browser plugins developed.

[–] Coelacanth@feddit.nu 4 points 1 year ago (1 children)

I don't think I'm aware of a way to link to a specific post or comment natively in a way that allows every user to see it on their home instance. There are some userscripts that fix this problem, and I think some of the apps do, too. Here is one (requires Violentmonkey or the like)

[–] neutron@thelemmy.club 3 points 1 year ago

An instance-neutral link could be nice. No idea if it's doable.

[–] freamon@endlesstalk.org 3 points 1 year ago (1 children)

If the link and its OP shares the same instance domain (@user@lemmy.example.com posting to !community@lemmy.example.com), then the federation link should be the link itself (please confirm if this is actually true).
If not, then the “federation link” has to be obtained.

This is my understanding

If you're given a link to a post, call the CommunityLinkFixer Bot, which should give you the URL of the post from your own instance (so you stay logged in):

[AT] CommunityLinkFixer [AT] lemmings.world

If someone gives you an absolute link to a Community, then the Bot should pop up to fix it itself.

[–] freamon@endlesstalk.org 2 points 1 year ago (1 children)

I say that, and I'm actually 100% sure how it works, so lets try:

https://lemmy.world/post/2263362

[–] freamon@endlesstalk.org 4 points 1 year ago (1 children)

@CommunityLinkFixer@lemmings.world

Hi there! Here are all the fixed links for your instance:

[–] redcalcium@lemmy.institute 3 points 1 year ago (1 children)

There is a button with fediverse icon that can be used to go to the post's link in the the original instance. Share that link instead. People that want to open it on their own instance can paste the link in their instance's search bar to find the local federated copy. A bit awkward but at least it works.

[–] neutron@thelemmy.club 1 points 1 year ago (1 children)

Is there technical reason it has to be the original instance's link instead of any other server being linked to? Federation and all, I see it as having an additional node before destination, but it's not a broken link regardless.

[–] redcalcium@lemmy.institute 4 points 1 year ago

The original url is basically the real post ID, which can be used to identify the same post regardless the instance you're currently in. AFAIK there are efforts to make deep linking work without copy pasting the original instance's url, so hopefully things are getting better in the coming months.

[–] petunia@lemmy.world 2 points 1 year ago

Matrix tackled this UX issue in the bud relatively early with https://matrix.to/. It still isn't ideal, but much better than expecting users to install browser extensions or OS-specific hacks to properly handle ActivityPub links.