@@ -64,18 +64,21 @@ var installCmd = &cobra.Command{
64
64
}
65
65
66
66
var relayContact string
67
- if selectedRelayOption == khatru_pyramid . RelayName || selectedRelayOption == nostr_rs_relay . RelayName || selectedRelayOption == khatru29 .RelayName {
67
+ if selectedRelayOption == wot_relay .RelayName {
68
68
pterm .Println ()
69
- pterm .Println (pterm .Yellow ("Leave email empty if you don't want to provide relay contact information ." ))
69
+ pterm .Println (pterm .Yellow ("If you leave the relay contact information empty, then the relay's public key will be used ." ))
70
70
71
71
pterm .Println ()
72
- relayContact , _ = pterm .DefaultInteractiveTextInput .Show ("Email address" )
73
- } else if selectedRelayOption == wot_relay . RelayName {
72
+ relayContact , _ = pterm .DefaultInteractiveTextInput .Show ("Email address/Public key (hex not npub) " )
73
+ } else {
74
74
pterm .Println ()
75
- pterm .Println (pterm .Yellow ("If you leave the relay contact information empty, then the relay's public key will be used ." ))
75
+ pterm .Println (pterm .Yellow ("Leave email empty if you don't want to provide relay contact information ." ))
76
76
77
77
pterm .Println ()
78
- relayContact , _ = pterm .DefaultInteractiveTextInput .Show ("Email address/Public key (hex not npub)" )
78
+ relayContact , _ = pterm .DefaultInteractiveTextInput .Show ("Email address" )
79
+ if relayContact != "" {
80
+ relayContact = fmt .Sprintf ("mailto:%s" , relayContact )
81
+ }
79
82
}
80
83
81
84
pterm .Println ()
@@ -151,7 +154,7 @@ var installCmd = &cobra.Command{
151
154
strfry .InstallRelayBinary ()
152
155
153
156
// Step 8: Set up the relay service
154
- strfry .SetupRelayService (relayDomain )
157
+ strfry .SetupRelayService (relayDomain , relayContact )
155
158
156
159
// Step 9: Show success messages
157
160
strfry .SuccessMessages (relayDomain , httpsEnabled )
@@ -208,7 +211,7 @@ var installCmd = &cobra.Command{
208
211
strfry29 .InstallRelayBinary ()
209
212
210
213
// Step 8: Set up the relay service
211
- strfry29 .SetupRelayService (relayDomain , privKey )
214
+ strfry29 .SetupRelayService (relayDomain , privKey , relayContact )
212
215
213
216
// Step 9: Show success messages
214
217
strfry29 .SuccessMessages (relayDomain , httpsEnabled )
0 commit comments