mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-21 19:57:29 -06:00
lots of restructuring
This commit is contained in:
parent
8ce32272a2
commit
6d81df50ce
21 changed files with 674 additions and 464 deletions
|
|
@ -30,11 +30,13 @@ import (
|
|||
"github.com/gotosocial/gotosocial/internal/db"
|
||||
)
|
||||
|
||||
// New returns a go-fed compatible federating actor
|
||||
func New(db db.DB) pub.FederatingActor {
|
||||
fa := &API{}
|
||||
return pub.NewFederatingActor(fa, fa, db, fa)
|
||||
return pub.NewFederatingActor(fa, fa, db.Federation(), fa)
|
||||
}
|
||||
|
||||
// API implements several go-fed interfaces in one convenient location
|
||||
type API struct {
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue