diff options
| author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-06-24 00:18:28 -0700 |
|---|---|---|
| committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-06-24 00:36:13 -0700 |
| commit | dbd548d428f222babb4e1d6a182b90f19b192e1f (patch) | |
| tree | 8a1fed7502b703b6a1ff2b0ccd1260f39bbd98e0 /api/template | |
| parent | fca8f5d8addeebba7d55d4b69159745c84f27a91 (diff) | |
| download | hatecomputers.club-dbd548d428f222babb4e1d6a182b90f19b192e1f.tar.gz hatecomputers.club-dbd548d428f222babb4e1d6a182b90f19b192e1f.zip | |
POST record with id to update to fix cloudflare 500
Diffstat (limited to 'api/template')
| -rw-r--r-- | api/template/template.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/template/template.go b/api/template/template.go index 2875649..ad6a573 100644 --- a/api/template/template.go +++ b/api/template/template.go @@ -46,7 +46,7 @@ func renderTemplate(context *types.RequestContext, templateName string, showBase func TemplateContinuation(path string, showBase bool) types.Continuation { return func(context *types.RequestContext, req *http.Request, resp http.ResponseWriter) types.ContinuationChain { return func(success types.Continuation, failure types.Continuation) types.ContinuationChain { - html, err := renderTemplate(context, path, true) + html, err := renderTemplate(context, path, showBase) if errors.Is(err, os.ErrNotExist) { resp.WriteHeader(404) html, err = renderTemplate(context, "404.html", true) |
