]> cat aescling's git repositories - mastodon.git/commit
Change how changes to media attachments are stored for edits (#17696)
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 9 Mar 2022 08:06:17 +0000 (09:06 +0100)
committerGitHub <noreply@github.com>
Wed, 9 Mar 2022 08:06:17 +0000 (09:06 +0100)
commitd17fb7013116767fc5c7d5eef63218bd8c45b023
tree38714f6b03b57940aec4ba35d3de2b7f6859999c
parentbd53dd521064b12261b82105624cf5f8b9ca9d69
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>
30 files changed:
app/chewy/statuses_index.rb
app/helpers/statuses_helper.rb
app/lib/feed_manager.rb
app/lib/rss/serializer.rb
app/models/report.rb
app/models/status.rb
app/models/status_edit.rb
app/serializers/activitypub/note_serializer.rb
app/serializers/rest/status_edit_serializer.rb
app/serializers/rest/status_serializer.rb
app/services/activitypub/process_status_update_service.rb
app/services/fan_out_on_write_service.rb
app/services/post_status_service.rb
app/services/remove_status_service.rb
app/services/update_status_service.rb
app/views/admin/reports/_status.html.haml
app/views/admin/reports/index.html.haml
app/views/admin/trends/statuses/_status.html.haml
app/views/disputes/strikes/show.html.haml
app/views/notification_mailer/_status.html.haml
app/views/statuses/_detailed_status.html.haml
app/views/statuses/_og_image.html.haml
app/views/statuses/_simple_status.html.haml
db/migrate/20220302232632_add_ordered_media_attachment_ids_to_statuses.rb [new file with mode: 0644]
db/migrate/20220303000827_add_ordered_media_attachment_ids_to_status_edits.rb [new file with mode: 0644]
db/post_migrate/20220303203437_remove_media_attachments_changed_from_status_edits.rb [new file with mode: 0644]
db/schema.rb
spec/models/report_spec.rb
spec/services/activitypub/process_status_update_service_spec.rb
spec/services/update_status_service_spec.rb