mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:21:18 +08:00
FIX: Ensure lightbox image download has correct content disposition in S3 (#7845)
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user