summaryrefslogtreecommitdiff
path: root/docs/api
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-08-06 12:09:21 +0200
committerLibravatar GitHub <noreply@github.com>2022-08-06 12:09:21 +0200
commitf5689a9e5fa5dbcae6c56fa9f393c2fc4686ac19 (patch)
treead66c13bc927e72dd072f1cabace27f9c5bd31b9 /docs/api
parent[bugfix] Parse source first before checking if empty form (#738) (diff)
downloadgotosocial-f5689a9e5fa5dbcae6c56fa9f393c2fc4686ac19.tar.xz
[feature] Let accounts set default status format, and use this when processing new statuses (#739)
* add post_format to acct & use it when making post * update swagger docs * add status_format updating to frontend * fix up tests * post_format => status_format * add status_format to account validation
Diffstat (limited to 'docs/api')
-rw-r--r--docs/api/swagger.yaml12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml
index 334acb93b..f33318f61 100644
--- a/docs/api/swagger.yaml
+++ b/docs/api/swagger.yaml
@@ -138,6 +138,10 @@ definitions:
description: Whether new statuses should be marked sensitive by default.
type: boolean
x-go-name: Sensitive
+ status_format:
+ description: The default posting format for new statuses.
+ type: string
+ x-go-name: StatusFormat
title: Source represents display or publishing preferences of user's own account.
type: object
x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model
@@ -1941,6 +1945,10 @@ definitions:
description: Mark authored statuses as sensitive by default.
type: boolean
x-go-name: Sensitive
+ status_format:
+ description: Default format for authored statuses (plain or markdown).
+ type: string
+ x-go-name: StatusFormat
title: UpdateSource is to be used specifically in an UpdateCredentialsRequest.
type: object
x-go-name: UpdateSource
@@ -2576,6 +2584,10 @@ paths:
in: formData
name: source[language]
type: string
+ - description: Default format to use for authored statuses (plain or markdown).
+ in: formData
+ name: source[status_format]
+ type: string
produces:
- application/json
responses: