mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-10 21:57:30 -06:00
Merge branch 'main' into content_warning_fixes
This commit is contained in:
commit
aa5713fc38
26 changed files with 572 additions and 26 deletions
|
|
@ -110,6 +110,10 @@ type Status struct {
|
|||
// so the user may redraft from the source text without the client having to reverse-engineer
|
||||
// the original text from the HTML content.
|
||||
Text string `json:"text,omitempty"`
|
||||
// Content type that was used to parse the status's text. Returned when
|
||||
// status is deleted, so if the user is redrafting the message the client
|
||||
// can default to the same content type.
|
||||
ContentType StatusContentType `json:"content_type,omitempty"`
|
||||
// A list of filters that matched this status and why they matched, if there are any such filters.
|
||||
Filtered []FilterResult `json:"filtered,omitempty"`
|
||||
// The interaction policy for this status, as set by the status author.
|
||||
|
|
@ -324,6 +328,9 @@ type StatusSource struct {
|
|||
|
||||
// Plain-text version of spoiler text.
|
||||
SpoilerText string `json:"spoiler_text"`
|
||||
|
||||
// Content type that was used to parse the text.
|
||||
ContentType StatusContentType `json:"content_type,omitempty"`
|
||||
}
|
||||
|
||||
// StatusEdit represents one historical revision of a status, containing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue