Add Monetization property to Object struct
This commit is contained in:
@@ -142,7 +142,7 @@ type Object struct {
|
|||||||
Endpoints *Endpoints `json:"endpoints,omitempty"`
|
Endpoints *Endpoints `json:"endpoints,omitempty"`
|
||||||
|
|
||||||
// Extensions
|
// Extensions
|
||||||
// NOTE: add extensions here
|
Monetization string `json:"monetization,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewNoteObject creates a basic Note object that includes the public
|
// NewNoteObject creates a basic Note object that includes the public
|
||||||
@@ -182,3 +182,8 @@ func NewPersonObject() *Object {
|
|||||||
}
|
}
|
||||||
return &o
|
return &o
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (o *Object) AddWebMonetization(wallet string) {
|
||||||
|
o.Context = append(o.Context, apMonetizationContext)
|
||||||
|
o.Monetization = wallet
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user