diff --git a/structs.go b/structs.go index c0a26d4d8..ed603d6e1 100644 --- a/structs.go +++ b/structs.go @@ -1970,6 +1970,7 @@ type Activity struct { Secrets Secrets `json:"secrets,omitempty"` Instance bool `json:"instance,omitempty"` Flags int `json:"flags,omitempty"` + SyncID string `json:"sync_id,omitempty"` } // UnmarshalJSON is a custom unmarshaljson to make CreatedAt a time.Time instead of an int @@ -1989,6 +1990,7 @@ func (activity *Activity) UnmarshalJSON(b []byte) error { Secrets Secrets `json:"secrets,omitempty"` Instance bool `json:"instance,omitempty"` Flags int `json:"flags,omitempty"` + SyncID string `json:"sync_id,omitempty"` }{} err := Unmarshal(b, &temp) if err != nil { @@ -2008,6 +2010,7 @@ func (activity *Activity) UnmarshalJSON(b []byte) error { activity.Timestamps = temp.Timestamps activity.Type = temp.Type activity.URL = temp.URL + activity.SyncID = temp.SyncID return nil }