MastodonAgain icon indicating copy to clipboard operation
MastodonAgain copied to clipboard

Make "Service" actor smarter

Open schwa opened this issue 3 years ago • 1 comments

We shouldn't be accessing MastodonAPI for most stuff. The Service actor should have easy to use APIs that let you fetch data…

  1. Cache all objects (Statuses, Accounts, Relationships being the core objects). Store them in Storage object.
  2. Fetch objects if not in cache (storing individual objects and pages of objects if using a paging api).
  3. Provide didChange mechanism (Swift Async Algorithm channels) so that UI can handle changes automatically.
  • [ ] #21
  • [x] #22
  • [ ] #23
  • [x] #24
  • [ ] #25

schwa avatar Nov 22 '22 21:11 schwa

We have this partially working for timelines and relationships.

schwa avatar Nov 24 '22 18:11 schwa