summaryrefslogtreecommitdiff
path: root/internal/api/client/followrequests
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/followrequests')
-rw-r--r--internal/api/client/followrequests/authorize.go2
-rw-r--r--internal/api/client/followrequests/get.go2
-rw-r--r--internal/api/client/followrequests/reject.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/internal/api/client/followrequests/authorize.go b/internal/api/client/followrequests/authorize.go
index 707d3db26..406b54179 100644
--- a/internal/api/client/followrequests/authorize.go
+++ b/internal/api/client/followrequests/authorize.go
@@ -93,5 +93,5 @@ func (m *Module) FollowRequestAuthorizePOSTHandler(c *gin.Context) {
return
}
- c.JSON(http.StatusOK, relationship)
+ apiutil.JSON(c, http.StatusOK, relationship)
}
diff --git a/internal/api/client/followrequests/get.go b/internal/api/client/followrequests/get.go
index af2f3741c..40cdceaea 100644
--- a/internal/api/client/followrequests/get.go
+++ b/internal/api/client/followrequests/get.go
@@ -139,5 +139,5 @@ func (m *Module) FollowRequestGETHandler(c *gin.Context) {
c.Header("Link", resp.LinkHeader)
}
- c.JSON(http.StatusOK, resp.Items)
+ apiutil.JSON(c, http.StatusOK, resp.Items)
}
diff --git a/internal/api/client/followrequests/reject.go b/internal/api/client/followrequests/reject.go
index 6514a615e..a8189b78a 100644
--- a/internal/api/client/followrequests/reject.go
+++ b/internal/api/client/followrequests/reject.go
@@ -91,5 +91,5 @@ func (m *Module) FollowRequestRejectPOSTHandler(c *gin.Context) {
return
}
- c.JSON(http.StatusOK, relationship)
+ apiutil.JSON(c, http.StatusOK, relationship)
}