Skip to content

Commit

Permalink
chore: set mastodon params IsRequired to false (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudoyu authored Nov 21, 2024
1 parent 482aade commit 7fb5450
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions internal/node/component/info/handler_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ type NodeInfo struct {
}

type WorkerSupportStatus struct {
Supported []string `json:"supported"`
Unsupported []string `json:"unsupported"`
Supported []string `json:"supported,omitempty"`
Unsupported []string `json:"unsupported,omitempty"`
}

type WorkerCoverage struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/node/component/info/network_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,14 +453,14 @@ var WorkerToConfigMap = map[network.Protocol]map[worker.Worker]workerConfig{
network.ActivityPubProtocol: {
federated.Core: customWorkerConfig(federated.Core, network.ActivityPubProtocol, &Parameters{
RelayURLList: &ConfigDetail{
IsRequired: true,
IsRequired: false,
Type: URLArrayType,
Description: relayURLArrayTypeDescription,
Title: "Relay URL List",
Key: "parameters.relay_url_list",
},
Port: &ConfigDetail{
IsRequired: true,
IsRequired: false,
Type: UintType,
Description: domainPortDescription,
Title: "Port Number",
Expand Down

0 comments on commit 7fb5450

Please sign in to comment.