mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-05 22:53:16 -06:00
add reject federatingdb handler
This commit is contained in:
parent
4f4a002846
commit
536ad8ad21
3 changed files with 124 additions and 3 deletions
|
|
@ -250,16 +250,17 @@ func (f *federator) FederatingCallbacks(ctx context.Context) (wrapped pub.Federa
|
|||
OnFollow: pub.OnFollowDoNothing,
|
||||
}
|
||||
|
||||
// override some default behaviors and trigger our own side effects
|
||||
other = []interface{}{
|
||||
// override default undo behavior and trigger our own side effects
|
||||
func(ctx context.Context, undo vocab.ActivityStreamsUndo) error {
|
||||
return f.FederatingDB().Undo(ctx, undo)
|
||||
},
|
||||
// override default accept behavior and trigger our own side effects
|
||||
func(ctx context.Context, accept vocab.ActivityStreamsAccept) error {
|
||||
return f.FederatingDB().Accept(ctx, accept)
|
||||
},
|
||||
// override default announce behavior and trigger our own side effects
|
||||
func(ctx context.Context, reject vocab.ActivityStreamsReject) error {
|
||||
return f.FederatingDB().Reject(ctx, reject)
|
||||
},
|
||||
func(ctx context.Context, announce vocab.ActivityStreamsAnnounce) error {
|
||||
return f.FederatingDB().Announce(ctx, announce)
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue