From af9626e2c4a6efb26bfceb12e7ec6d3c582f8634 Mon Sep 17 00:00:00 2001 From: soukainna Date: Fri, 17 Feb 2023 14:24:29 +0100 Subject: [PATCH] fix display name for all subscribed_by --- handlers/application/agenda.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/application/agenda.go b/handlers/application/agenda.go index cd97a6f..0db40d1 100644 --- a/handlers/application/agenda.go +++ b/handlers/application/agenda.go @@ -227,13 +227,13 @@ func (h *ApplicationHandler) AgendaSubscribeEvent(w http.ResponseWriter, r *http w.WriteHeader(http.StatusBadRequest) return } - + dis := fmt.Sprint(current_user_claims["first_name"]) + " " + fmt.Sprint(current_user_claims["last_name"]) subscriber := r.FormValue("subscriber") data := map[string]any{ "subscribed_by": map[string]any{ "user": map[string]any{ "id": current_user_token.Subject, - "display_name": current_user_claims["display_name"], + "display_name": dis, }, "group": map[string]any{ "id": current_group.ID,