From 9b72a95ca4db35bfe59d67af4d4861a24092b570 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Sun, 7 Jul 2024 14:19:51 -0700 Subject: [PATCH] Pinned photo bugfixes on initial upload page --- pkg/models/photo.go | 1 + web/templates/photo/upload.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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