From 58ad5a2fb78955752391ddcb10e8618c7999ed08 Mon Sep 17 00:00:00 2001 From: Scott Bishel Date: Wed, 17 Apr 2024 18:02:02 -0600 Subject: [PATCH] set user to bot, time to now (#604) (#608) (cherry picked from commit ee8c6096567ec400d6aca61d5a6ee8e4be97d0ca) --- server/api.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/api.go b/server/api.go index 5adabce4d..ab6287f9b 100644 --- a/server/api.go +++ b/server/api.go @@ -568,6 +568,8 @@ func (a *API) oauthRedirectHandler(w http.ResponseWriter, r *http.Request) { Id: stateArr[2], Message: userConnectedMessage, ChannelId: stateArr[3], + UserId: a.p.GetBotUserID(), + CreateAt: model.GetMillis(), } _ = a.p.GetAPI().UpdateEphemeralPost(mmUser.Id, post) connectURL := a.p.GetURL() + "/primary-platform"