From abd113167b4f50d2ca6b938fcb52997ab6080b0b Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 10 Feb 2022 09:13:27 +0100 Subject: 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. --- app/models/status.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/models') 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 -- cgit