diff --git a/internal/models/gist.go b/internal/models/gist.go index bc5b5d2..3bcd1da 100644 --- a/internal/models/gist.go +++ b/internal/models/gist.go @@ -399,6 +399,5 @@ func (dto *GistDTO) ToGist() *Gist { func (dto *GistDTO) ToExistingGist(gist *Gist) *Gist { gist.Title = dto.Title gist.Description = dto.Description - gist.Private = dto.Private return gist } diff --git a/templates/pages/edit.html b/templates/pages/edit.html index 29d1ff2..fb7f868 100644 --- a/templates/pages/edit.html +++ b/templates/pages/edit.html @@ -93,8 +93,8 @@
- Cancel - + Cancel +
{{ .csrfHtml }}