FIX: Pull hotlinked images for lightbox links as well.

This commit is contained in:
Guo Xiang Tan
2019-05-23 15:43:25 +08:00
parent 1059aafc55
commit df1e6eed5a
3 changed files with 76 additions and 9 deletions

View File

@@ -6,6 +6,9 @@ Fabricator(:optimized_image) do
extension ".png"
width 100
height 200
url "138569_100x200.png"
version OptimizedImage::VERSION
after_build do |optimized_image, _|
optimized_image.url = Discourse.store.get_path_for_optimized_image(optimized_image)
end
end