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

Lemmy Support

4981 readers
2 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 6 years ago
MODERATORS
 

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

top 5 comments
sorted by: hot top controversial new old
[–] cypherpunks@lemmy.ml 4 points 1 month ago* (last edited 1 month ago) (1 children)

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 1 month ago (2 children)

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 1 month ago (1 children)

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 1 month ago

Interesting, thanks !