FIX: Ensure lightbox image download has correct content disposition in S3 (#7845)

This commit is contained in:
Penar Musaraj
2019-07-04 11:32:51 -04:00
committed by GitHub
parent e9bb13c630
commit 03805e5a76
4 changed files with 40 additions and 5 deletions

View File

@ -382,7 +382,7 @@ class CookedPostProcessor
a = create_link_node("lightbox", img["src"])
img.add_next_sibling(a)
if upload && Discourse.store.internal?
if upload
a["data-download-href"] = Discourse.store.download_url(upload)
end