From cf7178fb3448b14fa0a98c4403b7c5648d13c3e1 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Thu, 26 Feb 2026 20:21:19 +0100 Subject: [PATCH] =?UTF-8?q?real=20fix=20for=20the=20UDD=20import=20problem?= =?UTF-8?q?s=20=E2=80=93=20it=20was=20looking=20for=20/json/screenshots=20?= =?UTF-8?q?and=20large=5Fimage=5Furl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/json/package.json.jbuilder | 6 +++--- app/views/json/screenshots.json.jbuilder | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/views/json/package.json.jbuilder b/app/views/json/package.json.jbuilder index 2632999..d340d37 100644 --- a/app/views/json/package.json.jbuilder +++ b/app/views/json/package.json.jbuilder @@ -11,8 +11,8 @@ json.screenshots @p.approved_screenshots do |s| @p, s.id )}" # backwards-compatibility for the UDD - json.large_image_url "#{request.protocol}#{request.host_with_port}#{screenshot_image_with_id_path( - @p, s.id - )}" + # json.large_image_url "#{request.protocol}#{request.host_with_port}#{screenshot_image_with_id_path( + # @p, s.id + # )}" json.version s.version end diff --git a/app/views/json/screenshots.json.jbuilder b/app/views/json/screenshots.json.jbuilder index 929ab7b..b8cec9c 100644 --- a/app/views/json/screenshots.json.jbuilder +++ b/app/views/json/screenshots.json.jbuilder @@ -13,5 +13,9 @@ json.cache! ['json_screenshots'], expires_in: 1.hour do json.screenshot_image_url "#{request.protocol}#{request.host_with_port}#{screenshot_image_with_id_path( p, s.id )}" + # for the UDD + json.large_image_url "#{request.protocol}#{request.host_with_port}#{screenshot_image_with_id_path( + p, s.id + )}" end end