Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm
75
fork

Configure Feed

Select the types of activity you want to include in your feed.

requests with a limit sometimes return fewer than expected backlinks #8

open opened by bad-example.com

example: https://constellation.microcosm.blue/xrpc/blue.microcosm.links.getBacklinks?subject=at%3A%2F%2Fdid%3Aplc%3Arevjuqmkvrw6fnkxppqtszpv%2Fsite.standard.publication%2F3lwafzkjqm25s&source=site.standard.document%3Asite&limit=3

right now the beginning and end slicing of the backlinks happens without regard for empty slots from deleted links, so endpoints might always return fewer-than-the-limit links, even if more are available to fill up the page.

seems like this can be changed to delay processing the "end" of the list (for the cursor) until after we try to just iterate through until we've collected enough actually-present items, which will probably more closely meet what client apps expect

[deleted by author]
sign up or login to add to the discussion
Labels

None yet.

Participants 1
AT URI
at://did:plc:hdhoaan3xa3jiuq4fg4mefid/sh.tangled.repo.issue/3mcs36y5qsu22