]> cat aescling's git repositories - mastodon.git/commit
Stop setting a shortcode to newly-created media attachments (#16730)
authorClaire <claire.github-309c@sitedethib.com>
Mon, 13 Sep 2021 16:59:37 +0000 (18:59 +0200)
committerGitHub <noreply@github.com>
Mon, 13 Sep 2021 16:59:37 +0000 (18:59 +0200)
commitdb57bff11d6a9e101d8aa0adc635367365c83901
treeb10d41b6cbc89695d49cd4fce24d63a1c2b493aa
parent75027b51a40a2ba26a3d89c89d2d679f3831c372
Stop setting a shortcode to newly-created media attachments (#16730)

* Stop setting a shortcode to newly-created media attachments

The WebUI has stopped using the “short media URL” in ages. This isn't used
anywhere except for mail notifications.

Deprecating it would allow us to eventually get rid of at least a database
column and corruption-prone index, as well as a controller.

* Fix tests
app/models/media_attachment.rb
app/serializers/rest/media_attachment_serializer.rb
app/views/notification_mailer/_status.html.haml
spec/controllers/media_controller_spec.rb