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
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.)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
Read the API docs for what type means: https://join-lemmy.org/lemmy-js-client-docs/v0.19/classes/LemmyHttp.html#getComments
i’m guessing it might have something to do with the fact that
jlai.lu
is configured to default to theLocal
view whilelemmy.world
defaults toAll
Interesting, thanks !