chore(web): remove unused echo context
(cherry picked from commit 329de3aab3cf0f15759ef1e20e865d3ad801d56e)
This commit is contained in:
@ -56,7 +56,7 @@ func unsplashImage(url string, c echo.Context) error {
|
||||
func ProxyUnsplashImage(c echo.Context) error {
|
||||
photo, err := getUnsplashPhotoInfoByID(c.Param("image"))
|
||||
if err != nil {
|
||||
return handler.HandleHTTPError(err, c)
|
||||
return handler.HandleHTTPError(err)
|
||||
}
|
||||
pingbackByPhotoID(photo.ID)
|
||||
return unsplashImage(photo.Urls.Raw, c)
|
||||
@ -76,7 +76,7 @@ func ProxyUnsplashImage(c echo.Context) error {
|
||||
func ProxyUnsplashThumb(c echo.Context) error {
|
||||
photo, err := getUnsplashPhotoInfoByID(c.Param("image"))
|
||||
if err != nil {
|
||||
return handler.HandleHTTPError(err, c)
|
||||
return handler.HandleHTTPError(err)
|
||||
}
|
||||
pingbackByPhotoID(photo.ID)
|
||||
return unsplashImage("https://images.unsplash.com/"+getImageID(photo.Urls.Raw)+"?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&ixid=eyJhcHBfaWQiOjcyODAwfQ", c)
|
||||
|
Reference in New Issue
Block a user