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:
parent
6c81f9d6e5
commit
54edb4b853
5 changed files with 60 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue