From 4e4da19720ff58730bfeb400c4eae080d87093b8 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Tue, 7 Feb 2023 14:57:09 +0100 Subject: [bugfix] Use SignatureCheck middleware for web profile endpoints too (#1451) --- cmd/gotosocial/action/server/server.go | 2 +- cmd/gotosocial/action/testrig/testrig.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/gotosocial/action/server/server.go b/cmd/gotosocial/action/server/server.go index 5bdd3e33f..f831d6eba 100644 --- a/cmd/gotosocial/action/server/server.go +++ b/cmd/gotosocial/action/server/server.go @@ -191,7 +191,7 @@ var Start action.GTSAction = func(ctx context.Context) error { wellKnownModule = api.NewWellKnown(processor) // .well-known endpoints nodeInfoModule = api.NewNodeInfo(processor) // nodeinfo endpoint activityPubModule = api.NewActivityPub(dbService, processor) // ActivityPub endpoints - webModule = web.New(processor) // web pages + user profiles + settings panels etc + webModule = web.New(dbService, processor) // web pages + user profiles + settings panels etc ) // create required middleware diff --git a/cmd/gotosocial/action/testrig/testrig.go b/cmd/gotosocial/action/testrig/testrig.go index 8efc225a5..e3e907442 100644 --- a/cmd/gotosocial/action/testrig/testrig.go +++ b/cmd/gotosocial/action/testrig/testrig.go @@ -129,7 +129,7 @@ var Start action.GTSAction = func(ctx context.Context) error { wellKnownModule = api.NewWellKnown(processor) // .well-known endpoints nodeInfoModule = api.NewNodeInfo(processor) // nodeinfo endpoint activityPubModule = api.NewActivityPub(dbService, processor) // ActivityPub endpoints - webModule = web.New(processor) // web pages + user profiles + settings panels etc + webModule = web.New(dbService, processor) // web pages + user profiles + settings panels etc ) // these should be routed in order -- cgit v1.2.3