Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open post in another instance #201

Open
NatoBoram opened this issue Jun 2, 2024 · 0 comments
Open

Open post in another instance #201

NatoBoram opened this issue Jun 2, 2024 · 0 comments

Comments

@NatoBoram
Copy link
Owner

NatoBoram commented Jun 2, 2024

For example, if I have this post: https://lemmy.world/post/16039716

I should have a button to open it in my instance. This button would:

  1. Create a client for the destination instance
  2. Obtain the required parameters
    1. Search for user
    2. Get user ID
    3. Search for community
    4. Get community ID
  3. Search the post with obtained parameters
  4. Get the post ID
  5. Redirect to instance's post

For communities, posts and users that aren't discovered yet, it takes a second for the Lemmy server to discover them. The user should be the one to try again.

@NatoBoram NatoBoram added this to the Production Ready milestone Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant