Embed Notice
HTML Code
Corresponding Notice
- Embed this notice@sun @lnxw37j1 truthfully if you want to steer ActivityPub by blazing the trail go convert the Object Validators in Pleroma to do JSON-LD schema enforcement. You'd be doing it as structs and probably easiest to use Ecto to cast them but then you could do the enforcement without waiting for native JSON library support.
So yeah we'd have to decode before we can validate which some may think is wasteful but this would allow us to even rewrite/normalize broken stuff to be valid like we do with the transmogrifier. And Elixir is pretty fast at the pattern matching so it seems suited to the task.