Pinned photo bugfixes on initial upload page

This commit is contained in:
Noah Petherbridge 2024-07-07 14:19:51 -07:00
parent 22b8cf0594
commit 9b72a95ca4
2 changed files with 2 additions and 1 deletions

View File

@ -82,6 +82,7 @@ func CreatePhoto(tmpl Photo) (*Photo, error) {
AltText: tmpl.AltText, AltText: tmpl.AltText,
Visibility: tmpl.Visibility, Visibility: tmpl.Visibility,
Gallery: tmpl.Gallery, Gallery: tmpl.Gallery,
Pinned: tmpl.Pinned,
Explicit: tmpl.Explicit, Explicit: tmpl.Explicit,
} }

View File

@ -270,7 +270,7 @@
<input type="checkbox" <input type="checkbox"
name="pinned" name="pinned"
value="true" value="true"
{{if or (not .EditPhoto) (.EditPhoto.Pinned)}}checked{{end}}> {{if .EditPhoto.Pinned}}checked{{end}}>
Keep this photo at the top of my gallery Keep this photo at the top of my gallery
</label> </label>
<p class="help"> <p class="help">