social.distributed.press icon indicating copy to clipboard operation
social.distributed.press copied to clipboard

Keep track of activities sent

Open fauno opened this issue 2 years ago • 2 comments

Right now, at jekyll-activity-pub we're tracking activities created/updated/deleted on a YAML file that needs to be kept around after build. Builds that run on CIs need to commit and push this, which can be awkward depending on the CI (apparently it's frowned upon?)

If we could fetch an ordered collection to retrieve the IDs of activities that the Social Inbox has seen it'd be great, but come to think of it, it should also contain the latest activity type too, and I'm not sure if that's a valid activity. Something like this (and maybe published and updated attributes too):

{
  "@context": "https://www.w3.org/ns/activitystreams",
  "id": "OUTBOX URL",
  "type": "OrderedCollectionPage",
  "orderedItems": [
    {
      "type": "Update",
      "id": "ACTIVITY URL"
    },
    {
      "type": "Delete",
      "id": "ACTIVITY URL"
    },
    {
      "type": "Create",
      "id": "ACTIVITY URL"
    }
  ]
}

fauno avatar Nov 07 '23 16:11 fauno

Oh interesting. Yeah that's a great idea. Just tracking the activity IDs would be pretty trivial.

We'd need something like the following:

  • [ ] OrderedSetStore - use Date added as index key (converted to bytes)
  • [ ] Add outbox URLs to it
  • [ ] New GET for /outbox which lists items from store (newest first)

We can probably reuse some of this for the inbox stuff too now that I think about it

RangerMauve avatar Nov 07 '23 16:11 RangerMauve

We talked this being Nice to have but already covered by the jekyll-activity-pub plugin so not immediately needed. It'd be useful for other client implementations later on.

fauno avatar Apr 25 '24 18:04 fauno