[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
This commit is contained in:
tobi
2022-08-06 12:09:21 +02:00
committed by GitHub
parent 3ab3f58342
commit f5689a9e5f
17 changed files with 259 additions and 21 deletions

View File

@@ -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: