diff options
Diffstat (limited to 'app/serializers/rest')
-rw-r--r-- | app/serializers/rest/media_attachment_serializer.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/serializers/rest/media_attachment_serializer.rb b/app/serializers/rest/media_attachment_serializer.rb index 1b3498ea4..35467ded8 100644 --- a/app/serializers/rest/media_attachment_serializer.rb +++ b/app/serializers/rest/media_attachment_serializer.rb @@ -13,6 +13,7 @@ class REST::MediaAttachmentSerializer < ActiveModel::Serializer def url if object.needs_redownload? + FetchMediaWorker.perform_async(object.id) media_proxy_url(object.id, :original) else full_asset_url(object.file.url(:original)) |