code cleanup & fixed compatibility for non-JS users & fixed fullscreen images being in low resolution

This commit is contained in:
partisan 2024-11-19 10:36:33 +01:00
parent 0d083f53e7
commit db89f9c781
13 changed files with 474 additions and 300 deletions

View file

@ -159,14 +159,12 @@ func PerformQwantImageSearch(query, safe, lang string, page int) ([]ImageSearchR
// Populate the result
results[i] = ImageSearchResult{
Thumb: item.Media, // item.Thumbnail is not working
Title: item.Title,
Full: item.Media,
Source: item.Url,
ProxyFull: "/imgproxy?url=" + item.Media,
ProxyThumb: "/imgproxy?url=" + item.Media,
Width: item.Width,
Height: item.Height,
Thumb: item.Media, // item.Thumbnail is not working
Title: item.Title,
Full: item.Media,
Source: item.Url,
Width: item.Width,
Height: item.Height,
}
}(i, item)
}