From b5bc54b7f4ab936e420ce81138b46df6ad730915 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Sat, 9 May 2026 01:39:08 +0000 Subject: [PATCH] Start adding context resources to communications These will contain URIs for anything related to the communication --- resource/communication.go | 6 ++++++ 1 file changed, 6 insertions(+) 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]