repos / pico

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

commit
e051891
parent
9ccbc2e
author
Eric Bower
date
2024-10-05 01:49:43 +0000 UTC
chore: log formatting
2 files changed,  +2, -2
M feeds/cron.go
+1, -1
1@@ -197,7 +197,7 @@ func (f *Fetcher) RunPost(logger *slog.Logger, user *db.User, post *db.Post) err
2 
3 func (f *Fetcher) RunUser(user *db.User) error {
4 	logger := shared.LoggerWithUser(f.cfg.Logger, user)
5-	posts, err := f.db.FindPostsForUser(&db.Pager{Num: 1000}, user.ID, "feeds")
6+	posts, err := f.db.FindPostsForUser(&db.Pager{Num: 100}, user.ID, "feeds")
7 	if err != nil {
8 		return err
9 	}
M pgs/api.go
+1, -1
1@@ -380,7 +380,7 @@ func ServeAsset(fname string, opts *storage.ImgProcessOpts, fromImgs bool, hasPe
2 	logger := ologger.With(
3 		"subdomain", subdomain,
4 		"filename", fname,
5-		"url", r.URL.Path,
6+		"url", fmt.Sprintf("%s%s", r.Host, r.URL.Path),
7 		"host", r.Host,
8 	)
9