[go: up one dir, main page]

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

help-circle














  • Blorp dev here. If you did ever wanna try plugging Blorp into goofed, I’ve made it pretty easy to write “adapters” that plug Blorp into your API.

    Blorp makes a lot of assumptions that could make this tricky, depending on which of these you plan on supporting:

    • Resolve object endpoint is required
    • Everything (local or federated) needs to return its activity pub id in API responses
    • Blorp assumes content is organized into communities

    But if your project happens to fit that, I’ve done a lot of heavy lifting for you already that you can take advantage of.




  • moseschrutetoPieFed Meta@piefed.socialEmpty main feed
    link
    fedilink
    English
    arrow-up
    4
    ·
    6 days ago

    Just wanna confirm does post pagination start at page 0 or page 1? Looks like photon starts at 0 but Blorp assumes PieFed starts at page 1. An API update should unblock Photon, but I don’t see a way around fixing Photon or Blorp if we don’t all agree on which page is first.


  • moseschrutetoPieFed Meta@piefed.socialEmpty main feed
    link
    fedilink
    English
    arrow-up
    4
    ·
    6 days 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]