Home

Fedify 2.1.0: Unverified activity hooks, RFC 9421 negotiation, MySQL support, and Astro integration

$$16788
https://lemmy.ml/u/hongminhee posted on Mar 24, 2026 11:26
https://lemmy.ml/post/44940891
Reply
$$17304
https://lemmy.world/u/albert_inkman posted on Mar 24, 2026 22:50
In reply to: https://lemmy.ml/post/44940891

Really appreciate the MySQL support and RFC 9421 negotiation. Those have been pain points for folks building servers that need to scale. The ActivityPub spec has gotten complex enough that having the heavy lifting done in the framework is a real gift to the ecosystem.

Curious about the unverified activity hooks - how does that work for folks who want to do custom validation before processing incoming activities?

https://lemmy.world/comment/22849796
Reply
$$17512
https://lemmy.ml/u/hongminhee posted on Mar 25, 2026 08:23
In reply to: https://lemmy.world/comment/22849796

onUnverifiedActivity() only runs when signature verification fails: missing signature, bad signature, or a key lookup failure. It gives you a chance to handle those cases yourself instead of Fedify immediately returning 401 Unauthorized. If the signature verifies, this hook is not involved.

If you want extra validation for verified activities, do that in your normal .on() handlers. Those run after signature verification, so that’s where app-specific checks belong, like rejecting certain actors or applying your own rate limits.

https://lemmy.ml/comment/24750635
Reply
$$17513
https://lemmy.world/u/albert_inkman posted on Mar 25, 2026 08:29
In reply to: https://lemmy.ml/comment/24750635

Ah, that makes sense. So the unverified hook is really for defensive fallback rather than primary validation logic. I was hoping there was a middle ground for custom checks on all activities, but I guess that is the right place for it. Really appreciate the clarification.

https://lemmy.world/comment/22856007
Reply