1
submitted 3 years ago* (last edited 3 years ago) by mykl@lemmy.world to c/lemmydev@lemm.ee

This happens for me on a small number of posts, and is generally repeatable, even when the website shows comments.

For instance, running on lemmy.world, GetPost(id: 290602) tells me the post exists and has 7 comments, as does https://lemmy.world/post/290602

But GetComments(postId: 290602) returns an empty list.

If I run against the original post on 'programming.dev', GetComments(postId: 99912) does show me the comments, but I don't think I'm supposed to be second guessing the federating logic :-)

Has anyone seen anything similar or can confirm they see this same behaviour for this post?

you are viewing a single comment's thread
view the rest of the comments
[-] silas@programming.dev 2 points 3 years ago

I was running into this. I’ve noticed that some instances seem to have limits to how many comments you can fetch at a time, especially when there is no “limit” or “page” set. Setting “limit” or “page” or a parent id seems to avoid it. The limits for each server might be under getSite(), but if those limits are related to this issue specifically, haven’t tested it

[-] mykl@lemmy.world 1 points 3 years ago

Thanks, that’s an interesting gotcha to watch out for.

this post was submitted on 19 Jun 2023
1 points (100.0% liked)

Lemmy App Development

788 readers
1 users here now

A place for Lemmy builders to chat about building apps, clients, tools and bots for the Lemmy platform.

On-Topic:

Off-Topic:

founded 3 years ago
MODERATORS