]> cat aescling's git repositories - mastodon.git/commit
Fix remote and staff-removed statuses leaving media behind for a day (#11638)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 22 Aug 2019 02:17:12 +0000 (04:17 +0200)
committerGitHub <noreply@github.com>
Thu, 22 Aug 2019 02:17:12 +0000 (04:17 +0200)
commit97192d9a77c0b4b68afe50d6a94d87110a8adbcd
treeee26296c9549c52f45bc098594a5b67392dc8851
parente9c3d1ef4603dfee19a59974771cb505ecfc3d29
Fix remote and staff-removed statuses leaving media behind for a day (#11638)

The reason for unattaching media instead of removing it is to support
delete & redraft functionality, but remote or staff-removed statuses
will never be redrafted, so the media should be deleted immediately
app/controllers/api/v1/statuses_controller.rb
app/lib/activitypub/activity/delete.rb
app/models/form/status_batch.rb
app/services/batched_remove_status_service.rb
app/services/remove_status_service.rb
app/workers/removal_worker.rb
spec/controllers/admin/reported_statuses_controller_spec.rb
spec/controllers/admin/statuses_controller_spec.rb
spec/models/form/status_batch_spec.rb