]> cat aescling's git repositories - mastodon.git/commit
Add soft delete for statuses for instant deletes through API (#11623)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 22 Aug 2019 19:55:56 +0000 (21:55 +0200)
committerGitHub <noreply@github.com>
Thu, 22 Aug 2019 19:55:56 +0000 (21:55 +0200)
commit282ea170782e4ce1ed5251a1b94857a512412397
tree956b7b0b7df12b5b5091a3b3a0db611ad61963e2
parent5ab1e0e738183a0ddcec140d55184351f751b22d
Add soft delete for statuses for instant deletes through API (#11623)

* Add soft delete for statuses to allow them to appear instant

* Allow reporting soft-deleted statuses and show them in the admin UI

* Change index for getting an account's statuses
14 files changed:
Gemfile
Gemfile.lock
app/controllers/api/v1/reports_controller.rb
app/controllers/api/v1/statuses/reblogs_controller.rb
app/controllers/api/v1/statuses_controller.rb
app/models/form/status_batch.rb
app/models/report.rb
app/models/status.rb
app/views/admin/reports/_status.html.haml
app/workers/removal_worker.rb
config/locales/en.yml
db/migrate/20190819134503_add_deleted_at_to_statuses.rb [new file with mode: 0644]
db/migrate/20190820003045_update_statuses_index.rb [new file with mode: 0644]
db/schema.rb