chiark / gitweb /
Fix extending user-list feeds.
authorSimon Tatham <anakin@pobox.com>
Thu, 4 Jan 2024 10:42:36 +0000 (10:42 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 4 Jan 2024 12:03:24 +0000 (12:03 +0000)
commit1ce1b877fd137ee53a1fba16ead1ca52fb3ad660
tree408f4433d3d1f84ad62c9dcb1ec3dd32899cecee
parent42f5c60226cc4a86708b2e485c423299ecce614d
Fix extending user-list feeds.

In lists of followers, favers, boosters etc, the ids you have to pass
in the 'max_id' or 'since_id' URL query parameters are not the same as
the account ids you get back. That's not surprising, now I think about
it, since the chronological order in which users did things has
nothing to do with any intrinsic ordering on the users themselves.

For status feeds, they seemed to match, so I got away without having
to pay attention to the Link: headers in the HTTP responses. But now I
realise I do have to worry about that after all. Happily, there's a
handy Rust crate that saves me having to do the work of parsing that
complicated header type!
Cargo.toml
src/client.rs