Leave out certain properties in Activity JSON
This commit is contained in:
@@ -4,7 +4,7 @@ import "fmt"
|
||||
|
||||
type (
|
||||
BaseObject struct {
|
||||
Context []string `json:"@context"`
|
||||
Context []string `json:"@context,omitempty"`
|
||||
Type string `json:"type"`
|
||||
ID string `json:"id"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user