fraction / oasis

Free, open-source, peer-to-peer social application that helps you follow friends and discover new ones on Secure Scuttlebutt (SSB).
http://oasis-demo.fraction.io
GNU Affero General Public License v3.0
286 stars 42 forks source link

Add simple pagination to user feeds. #448

Closed black-puppydog closed 4 years ago

black-puppydog commented 4 years ago

This is simply based on sequence numbers and the gt/lt arguments of createUserStream. The use of footer() for the pagination links is quite hacky but I didn't see how the links were made to be left/right aligned so this was my way out of that :shrug:

black-puppydog commented 4 years ago

Boom, got it to lint and all. :P Still unsure about the footer() hack but it does work for me and it's been pretty handy already. I understand this is not as universal a pagination method as giving gt and lt as message keys, but for user feeds this works and will always be enough as long as ssb sticks with the "append only linked lists" data model.

christianbundy commented 4 years ago

Hey, thanks for putting this together! Just tried it out locally and I can confirm It Works. :star2: