fork of indigo with slightly nicer lexgen

FIXUP: label

Changed files
+14 -14
atproto
label
+14 -14
atproto/label/label.go
··· 28 28 // converts to map[string]any for printing as JSON 29 29 func (l *Label) Data() map[string]any { 30 30 d := map[string]any{ 31 - "cid": c.CID, 32 - "cts": c.CreatedAt, 33 - "src": c.SourceDID, 34 - "uri": c.URI, 35 - "val": c.Val, 36 - "ver": c.Version, 31 + "cid": l.CID, 32 + "cts": l.CreatedAt, 33 + "src": l.SourceDID, 34 + "uri": l.URI, 35 + "val": l.Val, 36 + "ver": l.Version, 37 37 } 38 - if c.CID != nil { 39 - d["cid"] = c.CID 38 + if l.CID != nil { 39 + d["cid"] = l.CID 40 40 } 41 - if c.ExpiresAt != nil { 42 - d["exp"] = c.ExpiresAt 41 + if l.ExpiresAt != nil { 42 + d["exp"] = l.ExpiresAt 43 43 } 44 - if c.Negated != nil { 45 - d["neg"] = c.Negated 44 + if l.Negated != nil { 45 + d["neg"] = l.Negated 46 46 } 47 - if c.Sig != nil { 48 - d["sig"] = data.Bytes(c.Sig) 47 + if l.Sig != nil { 48 + d["sig"] = data.Bytes(l.Sig) 49 49 } 50 50 return d 51 51 }