Yes! I didn't see your post, I'm having the same issue, specifically with the instances lemmy.world and feddit.de. Good to know it's not my fault I guess?
Lemmy App Development
A place for Lemmy builders to chat about building apps, clients, tools and bots for the Lemmy platform.
On-Topic:
- programming questions related to the Lemmy platform
- sharing your ideas, WIP, or released Lemmy-related work
Off-Topic:
- general programming questions unrelated to Lemmy
- feature requests for developers
- sharing or promoting work not related to Lemmy
Quick update for anyone reading this:
I've just worked out how to use curl with the Lemmy API, and sadly curl -H 'Accept: application/activity+json' "https://lemmy.world/api/v3/comment/list?limit=10&postId=290602"
does show the comments, so I had to accept that there's something wrong in my request.
Having fiddled about a bit it appears that setting the type
parameter controls whether non-local comments get included, so adding type: CommentListingType.all
solved this problem.
Hi! The first curl example doesn't seem to work - it fetches comments but they are not relevant to https://lemmy.world/post/290602 :
> curl -H 'Accept: application/activity+json' "https://lemmy.world/api/v3/comment/list?limit=10&postId=290602" | jq -c '.comments[] | [.post.id, .comment.id, community.name]'
[484044,486431,"nostupidquestions"]
[455772,486976,"giftofgaming"]
...
[485477,486428,"outoftheloop"]
[484044,485717,"nostupidquestions"]
It seems that we need to set type_
parameter like this:
> curl -H 'Accept: application/activity+json' "https://lemmy.world/api/v3/comment/list?limit=10&post_id=290602&type_=All" | jq -c '.comments[] | [.post.id, .comment.id, community.
name]'
[290602,484328,"programmer_humor"]
[290602,374758,"programmer_humor"]
...
[290602,355277,"programmer_humor"]
[290602,345799,"programmer_humor"]