From f38beb4cfe19ff26ee95a00129563e699659bc7b Mon Sep 17 00:00:00 2001 From: Sam Rolfe Date: Mon, 10 Aug 2026 13:51:49 +1000 Subject: [PATCH] =?UTF-8?q?fix:=20user=20tag=20edit=20photo=20upload=20?= =?UTF-8?q?=E2=80=94=20standalone=20form=20(was=20nested=20inside=20main?= =?UTF-8?q?=20form,=20invalid=20HTML),=20thumbnail=20on=20success;=20resto?= =?UTF-8?q?re=20sms=5Fenabled=20on=20tag=206;=20admin=20upload=20accepts?= =?UTF-8?q?=20HEIC=20(no=20image()=20rule)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/internal/handlers/tags.go | 2 +- frontend/templates/tag-edit.html | 25 ++++++++++++++++--------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/frontend/internal/handlers/tags.go b/frontend/internal/handlers/tags.go index 6b67387..4469160 100644 --- a/frontend/internal/handlers/tags.go +++ b/frontend/internal/handlers/tags.go @@ -228,7 +228,7 @@ func (a *App) UploadPhoto(w http.ResponseWriter, r *http.Request) { } w.Header().Set("Content-Type", "text/html; charset=utf-8") - fmt.Fprintf(w, `

Photo uploaded ✓ — refresh to see it on the tag page.

`) + fmt.Fprintf(w, `
Uploaded photo

Photo uploaded ✓

`, photoURL) } // CloseTag lets an owner close (retire) their tag. Data is kept; the tag page diff --git a/frontend/templates/tag-edit.html b/frontend/templates/tag-edit.html index 951f644..de80bcf 100644 --- a/frontend/templates/tag-edit.html +++ b/frontend/templates/tag-edit.html @@ -25,15 +25,8 @@
- - {{if .Data.PhotoUrl.Valid}}Current photo{{end}} - -
- - - Uploading… -
-

Upload a photo, or paste a URL above.

+ +
@@ -56,5 +49,19 @@ Cancel
+ + +
+

Photo

+
+ {{if .Data.PhotoUrl.Valid}}Current photo{{end}} +
+ + + Uploading… +
+

Upload a photo — it shows on your public tag page and in the admin.

+
+
{{end}}