summaryrefslogtreecommitdiff
path: root/internal/web/base.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/base.go')
-rw-r--r--internal/web/base.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/web/base.go b/internal/web/base.go
index d501ee369..89dcc9b1c 100644
--- a/internal/web/base.go
+++ b/internal/web/base.go
@@ -36,10 +36,9 @@ func (m *Module) baseHandler(c *gin.Context) {
return
}
- host := config.GetHost()
- instance, err := m.processor.InstanceGet(c.Request.Context(), host)
+ instance, err := m.processor.InstanceGetV1(c.Request.Context())
if err != nil {
- apiutil.ErrorHandler(c, gtserror.NewErrorInternalError(err), m.processor.InstanceGet)
+ apiutil.ErrorHandler(c, gtserror.NewErrorInternalError(err), m.processor.InstanceGetV1)
return
}