Commit d9e94efb authored by Magnus Westergaard's avatar Magnus Westergaard
Browse files

DEICH-5949: Restore image size 'largest' in search results.

parent 1fc0ec22
......@@ -170,6 +170,7 @@ type Images struct {
Small string `json:"small,omitempty"`
Medium string `json:"medium,omitempty"`
Large string `json:"large,omitempty"`
Largest string `json:"largest,omitempty"`
HasAllSizes bool `json:"hasAllSizes"`
UseFallback bool `json:"useFallback"`
FallbackColor string `json:"fallbackColor"`
......
......@@ -105,6 +105,7 @@ func transformElasticResponse(esRes *elastic.SearchResult, requestedSize int, ex
p.Images.Small = imageResizeLink(p.CoverImage, 150)
p.Images.Medium = imageResizeLink(p.CoverImage, 270)
p.Images.Large = imageResizeLink(p.CoverImage, 420)
p.Images.Largest = imageResizeLink(p.CoverImage, 800)
p.Images.HasAllSizes = true
} else {
p.Images.UseFallback = true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment