ensure ContentType is updated anywhere Text is

This commit is contained in:
ewin 2025-03-03 16:42:04 -05:00
commit cd53543ec1
No known key found for this signature in database
4 changed files with 4 additions and 3 deletions

View file

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

View file

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