~netlandish/links

513b4084ea7734cdd2075ccbad4f95de841af7f2 — Peter Sanchez 19 days ago 44ef6e8
Fix import error when bookmark title is more than 150 characters
1 files changed, 5 insertions(+), 1 deletions(-)

M core/import.go
M core/import.go => core/import.go +5 -1
@@ 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)},

Do not follow this link