about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-09-16 03:01:45 +0200
committerGitHub <noreply@github.com>2017-09-16 03:01:45 +0200
commit54edb4b853522b322922b65989ddfc5fdf928014 (patch)
treebf169285ecb1e9073ca0c7beaf73ed71f2666521 /lib
parent6c81f9d6e553d2e9346514d1b1c8c214c317fed4 (diff)
When accessing uncached media attachment, redownload it (#4955)
* When accessing uncached media attachment, redownload it

* Prevent re-download of rejected media
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/mastodon.rake1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake
index 2aef752ca..5614ddf48 100644
--- a/lib/tasks/mastodon.rake
+++ b/lib/tasks/mastodon.rake
@@ -83,7 +83,6 @@ namespace :mastodon do
 
       MediaAttachment.where.not(remote_url: '').where('created_at < ?', time_ago).find_each do |media|
         media.file.destroy
-        media.type = :unknown
         media.save
       end
     end