Update db.go

This commit is contained in:
Believethehype
2023-06-13 12:15:19 +02:00
parent 00f7c5d90f
commit 532deaed9b
+4
View File
@@ -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 {