Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep track of activities sent #19

Open
fauno opened this issue Nov 7, 2023 · 2 comments
Open

Keep track of activities sent #19

fauno opened this issue Nov 7, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@fauno
Copy link
Collaborator

fauno commented Nov 7, 2023

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
Copy link
Contributor

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 RangerMauve moved this from Backlog to Todo in Distributed Press Organizing Apr 25, 2024
@fauno fauno added the enhancement New feature or request label Apr 25, 2024
@fauno fauno moved this from Todo to Backlog in Distributed Press Organizing Apr 25, 2024
@fauno
Copy link
Collaborator Author

fauno commented Apr 25, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

2 participants