• 38 Posts
  • 1.06K Comments
Joined 2 years ago
cake
Cake day: October 6th, 2024

help-circle





















  • Blorp dev here. Did some investigating and it looks like Photon is asking PieFed for page 0 of posts. I’m not sure how technical you are, sorry if this is duh, but programmers like to start counting things from 0. PieFed however doesn’t seem to like this.

    Here’s what I think is happening:

    • Photo asks for page 0 of posts
    • PieFed says “there are no posts at page 0”
    • Photon thinks if page 0 is empty, then there is no page 1

    What should happen:

    • Photo should ask for page 1 of posts
    • PieFed will respond “there are 25 posts on page 1”
    • Photon says page 1 is full so page 2 must have content
    • Photon then asks PieFed for page 2 of posts
    • …etc until we run out of pages of posts

    In other words, page 0 is a short circuit that prevents the entire feed from loading

    CC @Xylight@lemdro.id @Xylight@lemmy.xylight.dev (photon dev)

    Or maybe we wanna fix this at the API level? @rimu@piefed.social @wjs018@piefed.social