From 532deaed9b431dc2ebabffaaac842e001b951826 Mon Sep 17 00:00:00 2001 From: Believethehype Date: Tue, 13 Jun 2023 12:15:19 +0200 Subject: [PATCH] Update db.go --- db.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db.go b/db.go index bc135a6..468f840 100644 --- a/db.go +++ b/db.go @@ -49,6 +49,10 @@ func SaveName( name = strings.ToLower(name) domain = strings.ToLower(domain) + //remove trailing "/" from host + host_formatted := params.Host + params.Host = strings.TrimRight(host_formatted, "/") + if params.Npub != "" && s.GetNostrProfile { NostrProfile, err := GetNostrProfileMetaData(params.Npub, 0) if err == nil {