summaryrefslogtreecommitdiff
path: root/internal/api/client/status/statusfave.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/status/statusfave.go')
-rw-r--r--internal/api/client/status/statusfave.go63
1 files changed, 32 insertions, 31 deletions
diff --git a/internal/api/client/status/statusfave.go b/internal/api/client/status/statusfave.go
index 29f74316a..3117e7ef2 100644
--- a/internal/api/client/status/statusfave.go
+++ b/internal/api/client/status/statusfave.go
@@ -32,41 +32,42 @@ import (
//
// Star/like/favourite the given status, if permitted.
//
-// ---
-// tags:
-// - statuses
+// ---
+// tags:
+// - statuses
//
-// produces:
-// - application/json
+// produces:
+// - application/json
//
-// parameters:
-// - name: id
-// type: string
-// description: Target status ID.
-// in: path
-// required: true
+// parameters:
+// -
+// name: id
+// type: string
+// description: Target status ID.
+// in: path
+// required: true
//
-// security:
-// - OAuth2 Bearer:
-// - write:statuses
+// security:
+// - OAuth2 Bearer:
+// - write:statuses
//
-// responses:
-// '200':
-// description: "The newly faved status."
-// schema:
-// "$ref": "#/definitions/status"
-// '400':
-// description: bad request
-// '401':
-// description: unauthorized
-// '403':
-// description: forbidden
-// '404':
-// description: not found
-// '406':
-// description: not acceptable
-// '500':
-// description: internal server error
+// responses:
+// '200':
+// description: "The newly faved status."
+// schema:
+// "$ref": "#/definitions/status"
+// '400':
+// description: bad request
+// '401':
+// description: unauthorized
+// '403':
+// description: forbidden
+// '404':
+// description: not found
+// '406':
+// description: not acceptable
+// '500':
+// description: internal server error
func (m *Module) StatusFavePOSTHandler(c *gin.Context) {
authed, err := oauth.Authed(c, true, true, true, true)
if err != nil {