move shrine files out of public. use x-sendfile to send files for security.

This commit is contained in:
Christoph Haas 2025-06-16 00:24:11 +02:00
parent 8e66fb28db
commit b601b2bbb6
11 changed files with 164 additions and 140 deletions

View file

@ -24,7 +24,7 @@
= render(partial: 'admin_buttons', locals: {screenshot: screenshot})
/ Photoswipe needs to know the dimensions of the full-size image to zoom to
a.foobar.black [
href=url_for(screenshot.simage_url(:large))
href=screenshot_image_with_id_path(screenshot.package, screenshot.id)
data-pswp-width=screenshot.simage.width
data-pswp-height=screenshot.simage.height
]