Subject: [PATCH links] Only show save count when it's been saved more than once.

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

Changelog-changed: Only show save count when the URL has been publicly
  saved more than once.
---
 models/utils.go | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/models/utils.go b/models/utils.go
index f8d787e..d4a6dfc 100644
--- a/models/utils.go
+++ b/models/utils.go
@@ -88,12 +88,14 @@ func TagsToString(t []Tag) string {
 // ShowLinkCounter says whether or not to show a link counter
 func ShowLinkCounter(obj any) bool {
 	switch v := any(obj).(type) {
-	case *BaseURL, BaseURL:
-		return true
+	case *BaseURL:
+		return v.Counter > 1
+	case BaseURL:
+		return v.Counter > 1
 	case *OrgLink:
-		return v.BaseURLCounter > 0
+		return v.BaseURLCounter > 1
 	case OrgLink:
-		return v.BaseURLCounter > 0
+		return v.BaseURLCounter > 1
 	default:
 		return false
 	}
-- 
2.47.2