repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
3fb1982
parent
7d1f66a
author
Eric Bower
date
2024-03-10 19:10:03 +0000 UTC
fix(ui): don't bomb on rss token missing
1 files changed,  +1, -6
M plus/routes.go
+1, -6
 1@@ -91,12 +91,7 @@ func findOrCreateRssToken(httpCtx *shared.HttpCtx, ctx ssh.Context, pubkey strin
 2 			return
 3 		}
 4 
 5-		rssToken, err := dbpool.FindRssToken(user.ID)
 6-		if err != nil {
 7-			shared.JSONError(w, err.Error(), http.StatusUnprocessableEntity)
 8-			return
 9-		}
10-
11+		rssToken, _ := dbpool.FindRssToken(user.ID)
12 		if rssToken == "" {
13 			rssToken, err = dbpool.InsertToken(user.ID, "pico-rss")
14 			if err != nil {