Update relay description and fix indentation in handleRelayinfo.go
- pkg/version/version.go - Updated `Description` to include the URL `https://orly.dev`. - pkg/app/relay/handleRelayinfo.go - Fixed indentation for `Nips`, `Software`, and `Version` fields in the relay info response structure.
This commit is contained in:
@@ -53,8 +53,9 @@ func (s *Server) HandleRelayInfo(w http.ResponseWriter, r *http.Request) {
|
||||
info = &relayinfo.T{
|
||||
Name: s.relay.Name(),
|
||||
Description: version.Description,
|
||||
Nips: supportedNIPs, Software: version.URL,
|
||||
Version: version.V,
|
||||
Nips: supportedNIPs,
|
||||
Software: version.URL,
|
||||
Version: version.V,
|
||||
Limitation: relayinfo.Limits{
|
||||
AuthRequired: s.C.AuthRequired,
|
||||
RestrictedWrites: s.C.AuthRequired,
|
||||
|
||||
@@ -7,6 +7,6 @@ import (
|
||||
//go:embed version
|
||||
var V string
|
||||
|
||||
var Description = "relay powered by the orly framework"
|
||||
var Description = "relay powered by the orly framework https://orly.dev"
|
||||
|
||||
var URL = "https://orly.dev"
|
||||
|
||||
Reference in New Issue
Block a user