summaryrefslogtreecommitdiff
path: root/internal/processing/account
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/account')
-rw-r--r--internal/processing/account/update.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/processing/account/update.go b/internal/processing/account/update.go
index 738aa8c88..3d6bbae2a 100644
--- a/internal/processing/account/update.go
+++ b/internal/processing/account/update.go
@@ -60,10 +60,17 @@ func (p *processor) Update(ctx context.Context, account *gtsmodel.Account, form
if err := validate.Note(*form.Note); err != nil {
return nil, err
}
+
+ // Set the raw note before processing
+ account.NoteRaw = *form.Note
+
+ // Process note to generate a valid HTML representation
note, err := p.processNote(ctx, *form.Note, account.ID)
if err != nil {
return nil, err
}
+
+ // Set updated HTML-ified note
account.Note = note
}