diff --git a/posts.go b/posts.go index b21588c..e4cc81b 100644 --- a/posts.go +++ b/posts.go @@ -67,7 +67,8 @@ type ( } AuthenticatedPost struct { - ID string `json:"id" schema:"id"` + ID string `json:"id" schema:"id"` + Web bool `json:"web" schema:"web"` *SubmittedPost } @@ -623,6 +624,10 @@ func existingPost(app *app, w http.ResponseWriter, r *http.Request) error { } } + if p.Web { + p.IsRTL.Valid = true + } + if p.SubmittedPost == nil { return ErrPostNoUpdatableVals } diff --git a/templates/edit-meta.tmpl b/templates/edit-meta.tmpl index 5d2bf1a..108c552 100644 --- a/templates/edit-meta.tmpl +++ b/templates/edit-meta.tmpl @@ -263,6 +263,7 @@
 
+