When designing Loops federation, I came up with a system of Validators, Handlers and Builders for each type of activity.

I borrowed this from my WIP Laravel ActivityPub library, and it leverages a simple activityMap to handle incoming activities by first validating them, then handling them in a clean and clear way

I will be abstracting this to the Laravel ActivityPub library to make it easier for laravel devs to add ActivityPub support, and will be using it in Pixelfed

github.com/joinloops/loops-ser

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/dansup/statuses/115910732134331588 on your instance and quote it. (Note that quoting is not supported in Mastodon.)