mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-13 05:47:30 -06:00
[feature] Federate interaction policies + Accepts; enforce policies (#3138)
* [feature] Federate interaction policies + Accepts; enforce policies * use Acceptable type * fix index * remove appendIRIStrs * add GetAccept federatingdb function * lock on object IRI
This commit is contained in:
parent
f8d399cf6a
commit
8ab2b19a94
42 changed files with 3541 additions and 254 deletions
|
|
@ -19,6 +19,7 @@ package federatingdb
|
|||
|
||||
import (
|
||||
"context"
|
||||
"net/url"
|
||||
|
||||
"github.com/superseriousbusiness/activity/pub"
|
||||
"github.com/superseriousbusiness/activity/streams/vocab"
|
||||
|
|
@ -43,6 +44,12 @@ type DB interface {
|
|||
Reject(ctx context.Context, reject vocab.ActivityStreamsReject) error
|
||||
Announce(ctx context.Context, announce vocab.ActivityStreamsAnnounce) error
|
||||
Move(ctx context.Context, move vocab.ActivityStreamsMove) error
|
||||
|
||||
/*
|
||||
Extra/convenience functionality.
|
||||
*/
|
||||
|
||||
GetAccept(ctx context.Context, acceptIRI *url.URL) (vocab.ActivityStreamsAccept, error)
|
||||
}
|
||||
|
||||
// FederatingDB uses the given state interface
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue