From 60465c382725a668ee493f8d4e838cb043f1b86f Mon Sep 17 00:00:00 2001 From: krustowski Date: Sun, 14 Jul 2024 21:45:59 +0200 Subject: [PATCH] fix uncatched error on db.migration func --- .env.example | 2 +- api/swagger.json | 2 +- pkg/backend/db/migration.go | 6 +++--- pkg/backend/router.go | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.env.example b/.env.example index f813cc80..dbe95d9d 100644 --- a/.env.example +++ b/.env.example @@ -3,5 +3,5 @@ # APP_NAME=litter-go -APP_VERSION=0.35.8 +APP_VERSION=0.35.9 GOLANG_VERSION=1.22 diff --git a/api/swagger.json b/api/swagger.json index 866de725..70f4a1cb 100644 --- a/api/swagger.json +++ b/api/swagger.json @@ -13,7 +13,7 @@ "name": "MIT", "url": "https://github.com/krustowski/litter-go/blob/master/LICENSE" }, - "version": "0.35.8" + "version": "0.35.9" }, "host": "littr.n0p.cz", "basePath": "/api/v1", diff --git a/pkg/backend/db/migration.go b/pkg/backend/db/migration.go index 2bc360e9..9afa7b7f 100644 --- a/pkg/backend/db/migration.go +++ b/pkg/backend/db/migration.go @@ -188,14 +188,14 @@ func GetGravatarURL(emailInput string, channel chan string) string { hashEmail := md5.Sum(byteEmail) hashedStringEmail := hex.EncodeToString(hashEmail[:]) - //url := "https://www.gravatar.com/avatar/" + hashedStringEmail + "&s=" + strconv.Itoa(size) - url := "/web/android-chrome-192x192.png" + url := "https://www.gravatar.com/avatar/" + hashedStringEmail + "&s=" + strconv.Itoa(size) resp, err := http.Get(url) if err != nil || resp.StatusCode != 200 { //log.Println(resp.StatusCode) //log.Println(err.Error()) - url = defaultAvatarImage + //url = defaultAvatarImage + url = "/web/android-chrome-192x192.png" } else { resp.Body.Close() } diff --git a/pkg/backend/router.go b/pkg/backend/router.go index 35f14592..952e4305 100644 --- a/pkg/backend/router.go +++ b/pkg/backend/router.go @@ -1,5 +1,5 @@ // @title litter-go -// @version 0.35.8 +// @version 0.35.9 // @description nanoblogging platform as PWA built on go-app framework // @termsOfService https://littr.n0p.cz/tos