I have many links from a permanently offline/down instance of Lemmy (closure announcement #1 , #2 ) like:

https://lemmings.world/post/10000001

https://lemmings.world/post/10000002

so how do i convert these links so it links to a federated (backup) content on other Lemmy instance/s?

Is my only chance to try https://web.archive.org/web/*/https://lemmings.world/post/10000001 to find out post content/name, so i can use search engine to search that post name if it indexes federated version of the original post?

If i know the post name, do i have better way to find the federated content address beside using internet search engine?

It seems like Lemmy sucks (still too centralized), possibly similarly to https://spasm.network/apps (i am yet to try its federated forums).

  • Sjmarf@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    3 hours ago

    Paste the link in the search bar of another instance. If the post is cached, it’ll return it. Ideally, use the link to the post on the author’s instance, rather than the link to the post on another instance.

    Technical answer:

    Instances store posts from other instances. Every post on the fediverse has a unique ID called the “actor ID”. The actor ID of a post is the URL of the post on the instance of the user that authored the post. On the Lemmy web UI, you can retrieve this by right-clicking on the rainbow star icon below any post and copying the link.

    To retrieve the details for a cached post, you can call resolve_object?q=<actor-id>. For example:

    https://sh.itjust.works/api/v3/resolve_object?=https%3A%2F%2Flemmings.world%2Fpost%2F41938713

    For convenience, the Lemmy UI calls this when you paste a URL in the search bar.

    This can work for any URL that points to the post, but you should use the actor ID where possible. The Lemmy backend knows the actor ID of every post it has, but it may not know whichever URL you’re querying with, and you may get a null result when the post is cached.

    I hope this helps.