add missing (my bad!) federating wrapped callbacks behaviour

This commit is contained in:
kim 2025-01-27 14:08:52 +00:00
commit bdbb20401b

View file

@ -80,7 +80,15 @@ func NewFederator(
),
// prepared response to FederatingCallbacks()
wrapped: pub.FederatingWrappedCallbacks{},
wrapped: pub.FederatingWrappedCallbacks{
// OnFollow determines what action to take for this
// particular callback if a Follow Activity is handled.
//
// For our implementation, we always want to do nothing
// because we have internal logic for handling follows.
OnFollow: pub.OnFollowDoNothing,
},
callback: []any{
federatingDB.Like,
federatingDB.Block,