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.
This commit is contained in:
Claire
2022-02-10 09:13:27 +01:00
parent f1a6f9062e
commit abd113167b
3 changed files with 5 additions and 1 deletions

View File

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