repos / pico

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

commit
4b951be
parent
b3f3878
author
Eric Bower
date
2024-01-30 04:47:16 +0000 UTC
chore(imgs): remove unused code
1 files changed,  +1, -7
M imgs/api.go
+1, -7
 1@@ -47,15 +47,9 @@ func ImgsListHandler(w http.ResponseWriter, r *http.Request) {
 2 		return
 3 	}
 4 
 5-	tag := r.URL.Query().Get("tag")
 6 	var posts []*db.Post
 7-	var p *db.Paginate[*db.Post]
 8 	pager := &db.Pager{Num: 1000, Page: 0}
 9-	if tag == "" {
10-		p, err = dbpool.FindPostsForUser(pager, user.ID, Space)
11-	} else {
12-		p, err = dbpool.FindUserPostsByTag(pager, tag, user.ID, Space)
13-	}
14+	p, err := dbpool.FindPostsForUser(pager, user.ID, Space)
15 	posts = p.Data
16 
17 	if err != nil {