Skip to content

Commit

Permalink
Update db.go
Browse files Browse the repository at this point in the history
  • Loading branch information
believethehype committed Jun 13, 2023
1 parent 00f7c5d commit 532deae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 532deae

Please sign in to comment.