go-fed supports two kinds of #ActivityPub golang users: Those that want the library to do as much in the spec as possible (with options to override behavior), or those that want a near-completely custom solution.
Here's two diagrams for how go-fed can fit into your #golang project:
1) Mainly provide callbacks to support the AP logic particular to your app.
2) Implement the DelegateActor interface and do everything yourself.
Doing number 1 doesn't prevent switching to number 2 later.
In https://littr.me (federated link aggregator) I'm exposing an item's karma in a custom #ActivityPub property called "score".
I'm thinking of changing it to the "upvoteCount" and "downvoteCount" pair, so any clients can do their own scores based on those, instead of relying on the ones reported by the instance. These would reflect strictly the "Like"/"Dislike" activities count said item received.
IMO, extensions to #ActivityPub should as a convention:
1) Define a conventional alias for the `@context`
2) Actually host a definition of their extension at the IRI value for their alias
This preserves the intersection of the linked data world with the world of "just give me JSON". Linked data users can complain about how little of the linked data features are being used. The other side can complain when conventions are broken.
Nobody's happy but everything just works.
#activitypub devs I have a question. Would a Tombstone object's ID neccessarily be the same of the Object that was deleted? (The spec makes no clarification about this.)
@sir sorry to be the bearer of bad news, dispatch.sr.ht seems down. :(
When the heck were #golang subtests added. I feel like an ancient piece of machinery for not having realized my table tests were totally obsolete. They're a really cool addition to the standard testing library.
Metalhead.club is a Mastodon instance hosted in Germany and powered by 100% green energy. Mastodon is a free and decentralized alternative to well-established social microblogging platforms like Twitter. This instance is especially addressing Metal fans, but of course everybody is welcome to use metalhead.club. :-)
If you're using this Mastodon instance, please consider a single donation or monthly, recurring donations via LiberaPay to keep this instance metalling hard :-) Either via LiberaPay: Donate via LiberaPay ... or other means: https://thomas-leister.de/en/donate/