Not sure of the right words for what I mean. I’m still new to the Fediverse and even newer to PieFed.
I’m now 99% of the time in PieFed (my instance: piefed.social ) as opposed to Lemmy. Often I’ll visit a community and see zero or almost zero posts. But if I open the same community in Lemmy (my instance: lemmy.ca) there are loads of posts.
An example I just noticed: !stargate@lemmy.world
- Piefed.social: 2 posts.
- Lemmy.ca: 141 posts.
-
Is there a way to get those missing posts into Piefed?
-
All of them at once (not just one at a time)?
-
Can an ordinary user like me do it?
Thanks.
You can get comments using that feature too, I used in the past, it worked
https://piefed.social/search
I just tried the “Retrieve a post” function with one from !stargate@lemmy.world
In Lemmy (lemmy.ca), copied “original post” link: https://lemmy.dbzer0.com/post/36604560
In Piefed, clicked “Retrieve a post from the original server” https://piefed.social/retrieve_remote_post
!stargate@lemmy.world on PieFed now shows the post https://piefed.social/post/974588 :) , and comments from two communities: !games@lemmy.world and !PC Gaming@lemmy.ca :)
But it does not show any of the 6 comments from !stargate@lemmy.world :(
Trying a different post via https://piefed.social/search
Searched for Posts > “No Gods, No Rulers” (looking for this post https://lemmy.world/post/21880443 )
None of the results are for that post on !stargate :(
I just retrieved a comment there: https://piefed.social/post/974588#comment_6777142
Using the original link of the comment (https://sopuli.xyz/comment/14337052) in the “retrieve remote post”
You can theoretically retrieve all the comments that way, but it would take a while. There might be some automated way to do it, but I’m not aware of it.
Ideally, you could use ActivityPub (there’d be a /comments endpoint for every post, with a list to retrieve) but that’s not something Lemmy currently provides.
For automation, the API endpoint to use it ‘resolve_object’, and since it operates recursively, you can save yourself some time by only getting the deepest comment, so it will also fetch any parents (and the post too, if required).
For example, https://piefed.social/c/stargate@lemmy.world was missing the "I’m loving SG-1 (first time watcher), but just doing:
curl --header "authorization: Bearer MY_LOGIN_TOKEN" https://piefed.social/api/alpha/resolve_object?q=https%3A%2F%2Flemm.ee%2Fcomment%2F19279509
was enough to get the post and 7 comments in one call.
Instances disappearing really limits the viability of this kind of thing though - there’s already loads of missing comments from
kbin.social
andfeddit.de
, and it will be way worse whenlemm.ee
goes too.Thanks!
Thanks for the info. I don’t suppose anyone has written some script to automate this and preserve all that content, have they?
Not that I know of.
Thanks.
Crikey, it would take a while to do it all manually. I guess 99.999% of that pre-federation content will end up invisible to me on PieFed.
See the other comment about potential automation: https://piefed.social/post/974305#comment_6778240
Potentially a feature to work on in the future, but I guess there are higher priorities at the moment