real fix for the UDD import problems – it was looking for /json/screenshots and large_image_url
This commit is contained in:
parent
0e18dd19bb
commit
cf7178fb34
2 changed files with 7 additions and 3 deletions
|
|
@ -11,8 +11,8 @@ json.screenshots @p.approved_screenshots do |s|
|
||||||
@p, s.id
|
@p, s.id
|
||||||
)}"
|
)}"
|
||||||
# backwards-compatibility for the UDD
|
# backwards-compatibility for the UDD
|
||||||
json.large_image_url "#{request.protocol}#{request.host_with_port}#{screenshot_image_with_id_path(
|
# json.large_image_url "#{request.protocol}#{request.host_with_port}#{screenshot_image_with_id_path(
|
||||||
@p, s.id
|
# @p, s.id
|
||||||
)}"
|
# )}"
|
||||||
json.version s.version
|
json.version s.version
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -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(
|
json.screenshot_image_url "#{request.protocol}#{request.host_with_port}#{screenshot_image_with_id_path(
|
||||||
p, s.id
|
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
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue