Add all categories to post render context

- Convert post date/time to web log timezone
This commit is contained in:
2022-04-26 22:24:17 -04:00
parent ff87a71c9c
commit 6e7f4cc8ce
8 changed files with 66 additions and 31 deletions

View File

@@ -17,6 +17,8 @@ type WebLogMiddleware (next : RequestDelegate) =
| Some webLog ->
WebLogCache.set ctx webLog
do! PageListCache.update ctx
let! cats = Data.Category.findAllForView webLog.id conn
CategoryCache.set ctx cats
return! next.Invoke ctx
| None -> ctx.Response.StatusCode <- 404
}