Home | Notifications | New Note | Local | Federated | Search | Logout

marius@mariusor@metalhead.club

Mostly a programmer.

Implementing #ActivityPub in the #Go programming language.

Current projects:

* #GoActivityPub - a library to use ActivityPub in Go.

* #FedBOX - a generic ActivityPub service supporting the client to server API.

* #brutalinks - a link aggregator inspired by (old) reddit, hacker news and lobste.rs built on top of FedBOX.

* #oni - a single user ActivityPub server with minimal fuss.

My posts are mostly related to ActivityPub and web development.

alt: https://marius.federated.id
Brutalinks: https://brutalinks.tech/~marius
SourceHut: https://sr.ht/~mariusor/
github: https://github.com/mariusor/ Joined: 2026-04-01 03:01:58 4 notes, 0 following, 0 followers

Reply to @julian@fietkau.social marius@mariusor@metalhead.club (2026-04-04 19:45:43) @julian I'm not sure if you're getting confused by a collection that is embedded into an object as a way to reduce request numbers, but still has a dereferenceable ID, and an anonymous collection/object that has no dereferenceable ID, so it can't be independently retrieved.

The first is a representation convenience that shouldn't be impacted by this FEP, and the second is well... unspecified... which leaves us in the same place as before this FEP was created by @silverpill

Reply to @silverpill@mitra.social marius@mariusor@metalhead.club (2026-04-04 19:14:43) @silverpill I haven't really explored how embedded collections would work really from a technical point of view.

As an implementation detail in GoActivityPub collections are composed of two parts, an Collection/OrderedCollection document and its items/orderedItems elments that get saved separately and are linked to the collection by their IRIs(*).

So, a JSON document (with removed items/orderedItems) and a list of IRIs linking to the elements of the collection.

I'm not sure I could magick some logic that could convert embedded collections to this structure...

(*) I don't remember what happens with anonymous objects in collections. 🤷

@julian

Reply to @silverpill@mitra.social marius@mariusor@metalhead.club (2026-04-01 03:02:04) @silverpill lol, yeah, my "quick hack" to having ActivityPub spec compliant "image uploads"... it's been like that for a couple of years. :D

marius@mariusor@metalhead.club (2026-04-01 00:42:18) @silverpill does Mitra handle this kind of Image object?

I forgot how complicated the structure gets: https://marius.federated.id/uploads/storage-pg-almost-done

(Basically the client I create these with generates web-optimized versions, uploads them, and then aggregates them into this final Image. Individually they are also valid Image objects.)