8
submitted 5 days ago by KaKi87@jlai.lu to c/lemmy_support@lemmy.ml

Hi,

This post has comments : https://jlai.lu/post/26123233

But when asking the API : https://jlai.lu/api/v3/comment/list?post_id=26123233&sort=Old

An empty array is returned.

Why ?

Thanks

you are viewing a single comment's thread
view the rest of the comments
[-] cypherpunks@lemmy.ml 4 points 5 days ago* (last edited 5 days ago)

Looking at the network tab while loading a thread, I see you need to include type_=All.

(lemmy-ui sends other parameters too but your example URL works for me with just tyoe_=All added.)

[-] KaKi87@jlai.lu 2 points 5 days ago

Thanks.

Now, why isn't that required for an older post ?

For example : https://lemmy.world/api/v3/comment/list?post_id=5&sort=Old

[-] cypherpunks@lemmy.ml 1 points 5 days ago

i'm guessing it might have something to do with the fact that jlai.lu is configured to default to the Local view while lemmy.world defaults to All

[-] KaKi87@jlai.lu 2 points 5 days ago

Interesting, thanks !

this post was submitted on 23 Sep 2025
8 points (100.0% liked)

Lemmy Support

4971 readers
4 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 6 years ago
MODERATORS