From aa9ce272dcfa1380b2f05bc3a90ef8ca1b0a7f62 Mon Sep 17 00:00:00 2001 From: Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 22 Mar 2021 22:26:54 +0100 Subject: Oauth/token (#7) * add host and protocol options * some fiddling * tidying up and comments * tick off /oauth/token * tidying a bit * tidying * go mod tidy * allow attaching middleware to server * add middleware * more user friendly * add comments * comments * store account + app * tidying * lots of restructuring * lint + tidy --- internal/federation/federation.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal/federation') diff --git a/internal/federation/federation.go b/internal/federation/federation.go index ebc9102b0..cbd4edac7 100644 --- a/internal/federation/federation.go +++ b/internal/federation/federation.go @@ -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 { } -- cgit v1.2.3