[–] 5 points 2 years ago

I think once you unlocked all the luxuries that the world has to offer, the temptation gets the better of you eventually. I don't condone it, but I also can't say I wouldn't live a bit more wasteful if I had all the money in the world

  • source
  • parent
  • context
  • submitted 3 years ago* (last edited 3 years ago) by to c/lemmydev@lemm.ee
     

    Sometimes an API request returns {"comments":[]} and {"posts":[]} respectively, for a post and community, where posts and comments show up on the web frontend. Is that happening to any of you too? How do I handle it?

    Edit: did some more testing, it's most definitely a federation issue. If I query the instance that the post was made on for the comments, everything works fine. If I query my home instance, the result comes back empty.

    Edit 2: As always, just after publicly showcasing my lack of programming abilities, I discover it's been me the entire time. Make sure to await promises and to fetch posts from the correct instance, guys.

    view more: next ›