diff --git a/auth/api.go b/auth/api.go index 9b1151a4..9dfd9540 100644 --- a/auth/api.go +++ b/auth/api.go @@ -542,12 +542,14 @@ func AddPlusFeedForUser(dbpool db.DB, userID, email string) error { text := fmt.Sprintf(`=: email %s =: digest_interval 1day => %s`, email, href) + now := time.Now() _, err = dbpool.InsertPost(&db.Post{ - UserID: userID, - Text: text, - Space: "feeds", - Slug: "pico-plus", - Filename: "pico-plus", + UserID: userID, + Text: text, + Space: "feeds", + Slug: "pico-plus", + Filename: "pico-plus", + PublishAt: &now, }) return err } diff --git a/prose/api.go b/prose/api.go index bf6b7382..7056a0e3 100644 --- a/prose/api.go +++ b/prose/api.go @@ -875,7 +875,7 @@ func createSubdomainRoutes(staticRoutes []shared.Route) []shared.Route { routes, shared.NewRoute("GET", "/raw/(.+)", postRawHandler), shared.NewRoute("GET", "/(.+).md", postRawHandler), - shared.NewRoute("GET", "/([^/]+)/(.+)", imgRequest), + shared.NewRoute("GET", "/(.+.(?:jpg|jpeg|png|gif|webp|svg))/(.+)", imgRequest), shared.NewRoute("GET", "/(.+.(?:jpg|jpeg|png|gif|webp|svg))$", imgRequest), shared.NewRoute("GET", "/(.+).html", postHandler), shared.NewRoute("GET", "/(.+)", postHandler),