~netlandish/links-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

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

Details
Message ID
<20250617183701.12681-1-peter@netlandish.com>
Sender timestamp
1750163820
DKIM signature
missing
Download raw message
Patch: +4 -0
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
Details
Message ID
<DAP12WZSSX9Y.3SLHEJCGVSHP2@netlandish.com>
In-Reply-To
<20250617183701.12681-1-peter@netlandish.com> (view parent)
Sender timestamp
1750164182
DKIM signature
missing
Download raw message
Applied.

To git@git.code.netlandish.com:~netlandish/links
   9ed99a4..3aff1c0  master -> master
Reply to thread Export thread (mbox)