about summary refs log tree commit diff
path: root/app/models/status.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-02-10 09:13:27 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-02-10 19:10:14 +0100
commitabd113167b4f50d2ca6b938fcb52997ab6080b0b (patch)
treeb85d72f8667daa92a5e984e93ea30cd0ebc54cf5 /app/models/status.rb
parentf1a6f9062e00c0651680bf4d5d750ec0b078ac5a (diff)
Add ability to change content-type when editing a toot
Content-type defaults to edited toot's content-type to avoid surprising
behaviors when using clients that do not support this feature.
Diffstat (limited to 'app/models/status.rb')
-rw-r--r--app/models/status.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index e5a0beab6..236f95c1f 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -221,6 +221,7 @@ class Status < ApplicationRecord
       spoiler_text: spoiler_text,
       media_attachments_changed: media_attachments_changed,
       account_id: account_id || self.account_id,
+      content_type: content_type,
       created_at: at_time || edited_at
     )
   end