tgxn / lemmy-explorer

Instance and Community Explorer for Lemmy
https://lemmyverse.net/
109 stars 9 forks source link

[Feature Request] Add Universal Link to open remote communities in a user's home instance #40

Closed kringger closed 1 year ago

kringger commented 1 year ago

Add a Universal Link option in the format of /c/community@instance.tld so that communities will automatically open in the user's home instance.

Currently there are 2 options on a community listing:

  1. A url to the community's home instance
  2. A quick copy function for !community@instance.tld

The first is great for locating a community's source, but bad if the community is located on an instance other than your home instance.

The second is a remedy for the first's issue, allowing a user to copy the community string so they can place it in their home instance's search field

My recommended 3rd option would skip over the copy/paste step mandatesld by option no.2 , and allow the user to immediately open the remote community in their home instance. After which, the user can just press subscribe.

tgxn commented 1 year ago

Related to #5 - Lemmy SDK Integration

I want to allow users to enter or choose their "home instance", and potentially even login. This would mean the URL from point 1. would be a link to perhaps:

I think a better option would be to see if we can use the JS library client-side to pull the instance's communities and what the user is already subscribed to. (maybe I can also perform searches automatically?)

tgxn commented 1 year ago

this is merged, closing... i also debounced it in #33