summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-02-07 14:57:09 +0100
committerLibravatar GitHub <noreply@github.com>2023-02-07 14:57:09 +0100
commit4e4da19720ff58730bfeb400c4eae080d87093b8 (patch)
tree8b5e3956ae1444b2dbb9baac0bf766b7be47fd76 /cmd
parent[chore/frogend] domain blocklist layout on smaller screens (#1436) (diff)
downloadgotosocial-4e4da19720ff58730bfeb400c4eae080d87093b8.tar.xz
[bugfix] Use SignatureCheck middleware for web profile endpoints too (#1451)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gotosocial/action/server/server.go2
-rw-r--r--cmd/gotosocial/action/testrig/testrig.go2
2 files changed, 2 insertions, 2 deletions
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