]> cat aescling's git repositories - mastodon.git/commitdiff
Fix RedownloadMediaWorker (#13741)
authorTakeshi Umeda <noel.yoshiba@gmail.com>
Tue, 12 May 2020 13:55:25 +0000 (22:55 +0900)
committerGitHub <noreply@github.com>
Tue, 12 May 2020 13:55:25 +0000 (15:55 +0200)
app/workers/redownload_media_worker.rb

index 98e99591898e0e672769eb67c8f01b0fb0169cf1..071501a49103c73cbaf9256e9de593b9b2fb7d0b 100644 (file)
@@ -11,7 +11,7 @@ class RedownloadMediaWorker
 
     return if media_attachment.remote_url.blank?
 
-    media_attachment.reset_file!
+    media_attachment.file_remote_url = media_attachment.remote_url
     media_attachment.save
   rescue ActiveRecord::RecordNotFound
     true