summaryrefslogtreecommitdiff
path: root/internal/processing/status/edit.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/status/edit.go')
-rw-r--r--internal/processing/status/edit.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/processing/status/edit.go b/internal/processing/status/edit.go
index 95665074e..590fe565a 100644
--- a/internal/processing/status/edit.go
+++ b/internal/processing/status/edit.go
@@ -84,11 +84,14 @@ func (p *Processor) Edit(
return nil, errWithCode
}
+ // Process incoming content type.
+ contentType := processContentType(form.ContentType, status, requester.Settings.StatusContentType)
+
// Process incoming status edit content fields.
content, errWithCode := p.processContent(ctx,
requester,
statusID,
- string(form.ContentType),
+ contentType,
form.Status,
form.SpoilerText,
form.Language,
@@ -256,6 +259,7 @@ func (p *Processor) Edit(
edit.Content = status.Content
edit.ContentWarning = status.ContentWarning
edit.Text = status.Text
+ edit.ContentType = status.ContentType
edit.Language = status.Language
edit.Sensitive = status.Sensitive
edit.StatusID = status.ID
@@ -298,6 +302,7 @@ func (p *Processor) Edit(
status.Content = content.Content
status.ContentWarning = content.ContentWarning
status.Text = form.Status
+ status.ContentType = contentType
status.Language = content.Language
status.Sensitive = &form.Sensitive
status.AttachmentIDs = form.MediaIDs