mastodon/app
Patrick Figel 197af5de70 Set unknown attachment type when adding domain blocks ()
Follow-up to . 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 Minor updates to zh-CN JS translation () 2017-04-28 16:45:41 +02:00
controllers Return missing page when tag does not exist () 2017-04-28 15:11:21 +02:00
helpers Update settings_helper.rb () 2017-04-28 01:59:19 +02:00
lib Hotfix remote status formatting () 2017-04-27 23:37:22 +02:00
mailers Instance helper to replace site title helper () 2017-04-18 00:16:32 +02:00
models Set correct attachment type for rejected media () 2017-04-29 00:18:32 +02:00
presenters Bump version, improve how version is stored for better commit history () 2017-04-27 15:22:19 +02:00
services Set unknown attachment type when adding domain blocks () 2017-04-29 02:44:03 +02:00
validators Stricter whitelist rules () 2017-04-26 01:22:51 +02:00
views Fix API for Mastodon version () 2017-04-28 17:53:37 +02:00
workers Punycode URI normalization () 2017-04-25 02:47:31 +02:00