hometown/lib
Patrick Figel 197af5de70 Set unknown attachment type when adding domain blocks (#2605)
Follow-up to #2599. When a domain block with `reject_media` is
added or `rake mastodon:media:remove_remote` is invoked, mastodon
deletes the locally cached attachments and avatars but does not
reflect that change in the database, causing the `file` fields to
still have values. This change persists the deletion in the
database and sets the attachment type to unknown.

This also introduces a one-off rake task that sets all attachments
without a local file to the "unknown" type. The upgrade notes for
the next release should contain a post-upgrade step with
`rake mastodon:media:set_unknown`.
2017-04-29 02:44:03 +02:00
..
assets Initial commit 2016-02-20 22:53:20 +01:00
mastodon Update version to 1.3.1 (#2571) 2017-04-28 09:07:48 -04:00
paperclip Fix #2108 - Fix gif uploads (#2171) 2017-04-19 23:21:00 +02:00
tasks Set unknown attachment type when adding domain blocks (#2605) 2017-04-29 02:44:03 +02:00
templates/haml/scaffold Adding simple_form, adding profile settings, header image 2016-03-12 20:47:22 +01:00