Start adding context resources to communications

These will contain URIs for anything related to the communication
This commit is contained in:
Eli Ribble 2026-05-09 01:39:08 +00:00
parent 0301545df9
commit b5bc54b7f4
No known key found for this signature in database

View file

@ -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]