hyphacoop / social.distributed.press

A Social Inbox for Decentralized Publishing and ActivityPub.
https://hypha.coop/dripline/announcing-dp-social-inbox/
GNU Affero General Public License v3.0
23 stars 3 forks source link

Keep track of activities sent #19

Open fauno opened 10 months ago

fauno commented 10 months ago

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"
    }
  ]
}
RangerMauve commented 10 months ago

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

We'd need something like the following:

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

fauno commented 4 months ago

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.