summaryrefslogtreecommitdiff
path: root/internal/gotosocial/gotosocial.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/gotosocial/gotosocial.go')
-rw-r--r--internal/gotosocial/gotosocial.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/internal/gotosocial/gotosocial.go b/internal/gotosocial/gotosocial.go
index 6a66602f0..89d11c579 100644
--- a/internal/gotosocial/gotosocial.go
+++ b/internal/gotosocial/gotosocial.go
@@ -41,7 +41,12 @@ type Server interface {
// NewServer returns a new gotosocial server, initialized with the given configuration.
// An error will be returned the caller if something goes wrong during initialization
// eg., no db or storage connection, port for router already in use, etc.
-func NewServer(db db.DB, apiRouter router.Router, federator federation.Federator, mediaManager *media.Manager) (Server, error) {
+func NewServer(
+ db db.DB,
+ apiRouter router.Router,
+ federator *federation.Federator,
+ mediaManager *media.Manager,
+) (Server, error) {
return &gotosocial{
db: db,
apiRouter: apiRouter,
@@ -54,7 +59,7 @@ func NewServer(db db.DB, apiRouter router.Router, federator federation.Federator
type gotosocial struct {
db db.DB
apiRouter router.Router
- federator federation.Federator
+ federator *federation.Federator
mediaManager *media.Manager
}