diff --git a/pkg/models/photo.go b/pkg/models/photo.go index 0693b1b..e29aa32 100644 --- a/pkg/models/photo.go +++ b/pkg/models/photo.go @@ -82,6 +82,7 @@ func CreatePhoto(tmpl Photo) (*Photo, error) { AltText: tmpl.AltText, Visibility: tmpl.Visibility, Gallery: tmpl.Gallery, + Pinned: tmpl.Pinned, Explicit: tmpl.Explicit, } diff --git a/web/templates/photo/upload.html b/web/templates/photo/upload.html index a8cae92..a4ce34c 100644 --- a/web/templates/photo/upload.html +++ b/web/templates/photo/upload.html @@ -270,7 +270,7 @@ + {{if .EditPhoto.Pinned}}checked{{end}}> Keep this photo at the top of my gallery