mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-23 03:26:15 -06:00
ensure ContentType is updated anywhere Text is
This commit is contained in:
parent
8eeede9c35
commit
cd53543ec1
4 changed files with 4 additions and 3 deletions
|
|
@ -170,13 +170,11 @@ func (p *Processor) Create(
|
|||
// Set validated language.
|
||||
Language: content.Language,
|
||||
|
||||
// Set resolved content type.
|
||||
ContentType: typeutils.APIContentTypeToContentType(contentType),
|
||||
|
||||
// Set formatted status content.
|
||||
Content: content.Content,
|
||||
ContentWarning: content.ContentWarning,
|
||||
Text: form.Status, // raw
|
||||
ContentType: typeutils.APIContentTypeToContentType(contentType),
|
||||
|
||||
// Set gathered mentions.
|
||||
MentionIDs: content.MentionIDs,
|
||||
|
|
|
|||
|
|
@ -303,6 +303,7 @@ func (p *Processor) Edit(
|
|||
status.Content = content.Content
|
||||
status.ContentWarning = content.ContentWarning
|
||||
status.Text = form.Status
|
||||
status.ContentType = typeutils.APIContentTypeToContentType(form.ContentType)
|
||||
status.Language = content.Language
|
||||
status.Sensitive = &form.Sensitive
|
||||
status.AttachmentIDs = form.MediaIDs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue