diff --git a/resource/communication.go b/resource/communication.go index 5cc8084a..696b645c 100644 --- a/resource/communication.go +++ b/resource/communication.go @@ -33,6 +33,7 @@ type communicationLog struct { User string `json:"user"` } type communication struct { + Context []resourceStub `json:"context"` Created time.Time `json:"created"` ID string `json:"id"` Log []communicationLog `json:"log"` @@ -50,6 +51,11 @@ type communicationStub struct { Type string `json:"type"` URI string `json:"uri"` } +type resourceStub struct { + Created time.Time `json:"created"` + Type string `json:"type"` + URI string `json:"uri"` +} func toImageURLs(m map[string][]uuid.UUID, id string) []string { uuids, ok := m[id]