Skip to content

Commit

Permalink
fix uncatched error on db.migration func
Browse files Browse the repository at this point in the history
  • Loading branch information
krustowski committed Jul 14, 2024
1 parent cccdec8 commit 60465c3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
#

APP_NAME=litter-go
APP_VERSION=0.35.8
APP_VERSION=0.35.9
GOLANG_VERSION=1.22
2 changes: 1 addition & 1 deletion api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions pkg/backend/db/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/backend/router.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 60465c3

Please sign in to comment.