real fix for the UDD import problems – it was looking for /json/screenshots and large_image_url

This commit is contained in:
Christoph Haas 2026-02-26 20:21:19 +01:00
parent 0e18dd19bb
commit cf7178fb34
2 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -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