Hi all, I think I am facing some bug. My main feed is empty whatever I try to filter. If I click on specific feed that I follow, I see the posts there. Please, help!

EDIT: So it’s photon of piefed.social that stopped to work :(

  • Mose13@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 months ago

    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 @[email protected] @[email protected] (photon dev)

    Or maybe we wanna fix this at the API level? @[email protected] @[email protected]