Change how changes to media attachments are stored for edits (#17696)
* Change how changes to media attachments are stored for edits
Fix not being able to re-order media attachments
* Fix not broadcasting updates when polls/media is changed through ActivityPub
* Various fixes and improvements
* Update app/models/report.rb
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
* Add tracking of media attachment description changes
* Change poll in status edit to have a structure closer to the real one
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
@ -892,6 +894,7 @@ ActiveRecord::Schema.define(version: 2022_03_07_094650) do
t.datetime"deleted_at"
t.datetime"edited_at"
t.boolean"trendable"
t.bigint"ordered_media_attachment_ids",array:true
t.index["account_id","id","visibility","updated_at"],name:"index_statuses_20190820",order:{id::desc},where:"(deleted_at IS NULL)"
t.index["deleted_at"],name:"index_statuses_on_deleted_at",where:"(deleted_at IS NOT NULL)"
t.index["id","account_id"],name:"index_statuses_local_20190824",order:{id::desc},where:"((local OR (uri IS NULL)) AND (deleted_at IS NULL) AND (visibility = 0) AND (reblog_of_id IS NULL) AND ((NOT reply) OR (in_reply_to_account_id = account_id)))"