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

Lemmy Support

5039 readers
1 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

you are viewing a single comment's thread
view the rest of the comments
[–] cypherpunks@lemmy.ml 4 points 5 months ago* (last edited 5 months 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 5 months 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 5 months 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 5 months ago

Interesting, thanks !