1
0
mirror of https://github.com/mastodon/mastodon synced 2024-12-01 00:08:21 +09:00

Fix RedownloadMediaWorker (#13741)

This commit is contained in:
Takeshi Umeda 2020-05-12 22:55:25 +09:00 committed by GitHub
parent af6d356279
commit 706972b4ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ class RedownloadMediaWorker
return if media_attachment.remote_url.blank? return if media_attachment.remote_url.blank?
media_attachment.reset_file! media_attachment.file_remote_url = media_attachment.remote_url
media_attachment.save media_attachment.save
rescue ActiveRecord::RecordNotFound rescue ActiveRecord::RecordNotFound
true true