0
0
Fork 0

When accessing uncached media attachment, redownload it (#4955)

* When accessing uncached media attachment, redownload it

* Prevent re-download of rejected media
This commit is contained in:
Eugen Rochko 2017-09-16 03:01:45 +02:00 committed by GitHub
parent 6c81f9d6e5
commit 54edb4b853
5 changed files with 60 additions and 5 deletions

View file

@ -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