From 052b764afb73ae8b47025f1b18010abb1d5df136 Mon Sep 17 00:00:00 2001 From: Thomas Schmidt Date: Wed, 22 Jan 2025 23:43:26 +0100 Subject: [PATCH] dd timestamp to image --- app/models/map.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/map.rb b/app/models/map.rb index ec991d2c..579196c3 100644 --- a/app/models/map.rb +++ b/app/models/map.rb @@ -115,7 +115,7 @@ def self.create_from_file(path, collection_format: 4326) end def screenshot - "/previews/#{safe_public_id}.png" if File.exist?(screenshot_file) + "/previews/#{safe_public_id}.png?#{Map.last.updated_at.to_i}" if File.exist?(screenshot_file) end def screenshot_file