diff --git a/lib/cooked_post_processor.rb b/lib/cooked_post_processor.rb index 8653f422382..556345f644e 100644 --- a/lib/cooked_post_processor.rb +++ b/lib/cooked_post_processor.rb @@ -362,7 +362,7 @@ class CookedPostProcessor end end - img["srcset"] = "#{img["src"]}#{srcset}" if srcset.length > 0 + img["srcset"] = "#{UrlHelper.cook_url(img["src"])}#{srcset}" if srcset.length > 0 else img["src"] = upload.url