From 841f74894e6437c972b92d230659c003cfed3d86 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 31 Dec 2024 02:06:19 -0800 Subject: [PATCH] refac --- backend/open_webui/routers/channels.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/open_webui/routers/channels.py b/backend/open_webui/routers/channels.py index d2bd99e6f..936a8d0dc 100644 --- a/backend/open_webui/routers/channels.py +++ b/backend/open_webui/routers/channels.py @@ -531,6 +531,9 @@ async def add_reaction_to_message( "type": "message:reaction:add", "data": { **message.model_dump(), + "user": UserNameResponse( + **Users.get_user_by_id(user.id).model_dump() + ).model_dump(), "name": form_data.name, }, }, @@ -597,6 +600,9 @@ async def remove_reaction_by_id_and_user_id_and_name( "type": "message:reaction:remove", "data": { **message.model_dump(), + "user": UserNameResponse( + **Users.get_user_by_id(user.id).model_dump() + ).model_dump(), "name": form_data.name, }, },