summaryrefslogtreecommitdiff
path: root/internal/web/about.go
diff options
context:
space:
mode:
authorLibravatar Natsu Kagami <natsukagami@gmail.com>2023-05-12 08:16:41 +0000
committerLibravatar GitHub <noreply@github.com>2023-05-12 10:16:41 +0200
commitba5a464ca5d3fcbd171c174a4f07c3326ecb01df (patch)
tree4289873a2fef9a9b102fb692b0cf6d3409a41747 /internal/web/about.go
parentuse more semantic headers for profile page (#1765) (diff)
downloadgotosocial-ba5a464ca5d3fcbd171c174a4f07c3326ecb01df.tar.xz
[chore] Prefer JSON errors in API endpoints (#1766)
* Default to JSON over HTML for error handling * Change the default error display for web endpoints to html
Diffstat (limited to 'internal/web/about.go')
-rw-r--r--internal/web/about.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/web/about.go b/internal/web/about.go
index 86c0accda..ebb1ceefa 100644
--- a/internal/web/about.go
+++ b/internal/web/about.go
@@ -33,7 +33,7 @@ const (
func (m *Module) aboutGETHandler(c *gin.Context) {
instance, err := m.processor.InstanceGetV1(c.Request.Context())
if err != nil {
- apiutil.ErrorHandler(c, gtserror.NewErrorInternalError(err), m.processor.InstanceGetV1)
+ apiutil.WebErrorHandler(c, gtserror.NewErrorInternalError(err), m.processor.InstanceGetV1)
return
}