Subject: [PATCH links] Strip leading pound (hash) symbols in tag names.

From: Peter Sanchez <[email-masked]>
Date: Tue, 17 Jun 2025 12:37:00 -0600

Changelog-changed: No more leading hash marks in tag names
---
 helpers.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/helpers.go b/helpers.go
index 7d30e3f..53dd36f 100644
--- a/helpers.go
+++ b/helpers.go
@@ -745,6 +745,10 @@ func ProcessTags(ctx context.Context, tags []string) ([]int, error) {
 	tagIDs := make([]int, 0)
 	for _, tag := range tags {
 		tag := strings.TrimSpace(tag)
+		if strings.HasPrefix(tag, "#") {
+			// Remove any leading hash mark
+			tag = tag[1:]
+		}
 		if tag != "" {
 			slug := Slugify(tag)
 			if len(tag) > 50 || len(slug) > 50 {
-- 
2.47.2