fix display name for all subscribed_by

This commit is contained in:
soukainna 2023-02-17 14:24:29 +01:00
parent d3df781e33
commit af9626e2c4
1 changed files with 2 additions and 2 deletions

View File

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