From 513b4084ea7734cdd2075ccbad4f95de841af7f2 Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Fri, 21 Feb 2025 17:33:17 -0600 Subject: [PATCH] Fix import error when bookmark title is more than 150 characters --- core/import.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/import.go b/core/import.go index c908823..7e6aebb 100644 --- a/core/import.go +++ b/core/import.go @@ -283,8 +283,12 @@ func processOrgLinks(obj importObj, baseURLMap map[string]int, } } + title := obj.GetTitle() + if len(title) > 150 { + title = title[:146] + "..." + } return &models.OrgLink{ - Title: obj.GetTitle(), + Title: title, URL: obj.GetURL(), Description: obj.GetDescription(), BaseURLID: sql.NullInt64{Valid: true, Int64: int64(baseID)}, -- 2.45.3