mirror of
https://github.com/balzack/databag.git
synced 2025-02-11 19:19:16 +00:00
fixing seal not communicated on new connections
This commit is contained in:
parent
cc7e8e4ad2
commit
5b7eff1c7d
@ -4349,6 +4349,8 @@ components:
|
||||
format: base64 encoded image
|
||||
version:
|
||||
type: string
|
||||
seal:
|
||||
type: string
|
||||
node:
|
||||
type: string
|
||||
|
||||
|
@ -56,6 +56,7 @@ func AddCard(w http.ResponseWriter, r *http.Request) {
|
||||
Image: identity.Image,
|
||||
Version: identity.Version,
|
||||
Node: identity.Node,
|
||||
Seal: identity.Seal,
|
||||
ProfileRevision: identity.Revision,
|
||||
Status: APPCardConfirmed,
|
||||
StatusUpdated: time.Now().Unix(),
|
||||
|
@ -48,6 +48,7 @@ func GetOpenMessage(w http.ResponseWriter, r *http.Request) {
|
||||
Handle: account.Username,
|
||||
Name: detail.Name,
|
||||
Description: detail.Description,
|
||||
Seal: detail.SealPublic,
|
||||
Location: detail.Location,
|
||||
Image: detail.Image,
|
||||
Version: APPVersion,
|
||||
|
@ -62,6 +62,7 @@ func SetOpenMessage(w http.ResponseWriter, r *http.Request) {
|
||||
card.Name = connect.Name
|
||||
card.Description = connect.Description
|
||||
card.Location = connect.Location
|
||||
card.Seal = connect.Seal
|
||||
card.Image = connect.Image
|
||||
card.Version = connect.Version
|
||||
card.Node = connect.Node
|
||||
@ -109,6 +110,7 @@ func SetOpenMessage(w http.ResponseWriter, r *http.Request) {
|
||||
card.Username = connect.Handle
|
||||
card.Name = connect.Name
|
||||
card.Description = connect.Description
|
||||
card.Seal = connect.Seal
|
||||
card.Location = connect.Location
|
||||
card.Image = connect.Image
|
||||
card.Version = connect.Version
|
||||
|
@ -249,6 +249,8 @@ type Connect struct {
|
||||
|
||||
Version string `json:"version,omitempty"`
|
||||
|
||||
Seal string `json:"seal,omitempty"`
|
||||
|
||||
Node string `json:"node,omitempty"`
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user