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:
1 parent
6c81f9d6e5
commit
54edb4b853
5 files changed
+60
-5
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user