mirror of
https://github.com/believethehype/nostdress.git
synced 2026-07-09 17:08:09 -07:00
Update db.go
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user