From e4b1217af823c4e749673c4eb54d145a95ec8cd4 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Tue, 25 Jan 2022 20:13:41 -0800 Subject: [PATCH] Do not return clientID in chat history API. Closes #1547 --- core/chat/events/events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/chat/events/events.go b/core/chat/events/events.go index 6b944fc30..ad28c73df 100644 --- a/core/chat/events/events.go +++ b/core/chat/events/events.go @@ -36,7 +36,7 @@ type Event struct { // UserEvent is an event with an associated user. type UserEvent struct { User *user.User `json:"user"` - ClientID uint `json:"clientId"` + ClientID uint `json:"clientId,omitempty"` HiddenAt *time.Time `json:"hiddenAt,omitempty"` }