From 16a48ef4eb11e30223b6df94f8cfb1d153da2fd4 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 31 Dec 2024 02:06:55 -0800 Subject: [PATCH] fix --- backend/open_webui/routers/channels.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/routers/channels.py b/backend/open_webui/routers/channels.py index 936a8d0dc..8089be68f 100644 --- a/backend/open_webui/routers/channels.py +++ b/backend/open_webui/routers/channels.py @@ -532,7 +532,7 @@ async def add_reaction_to_message( "data": { **message.model_dump(), "user": UserNameResponse( - **Users.get_user_by_id(user.id).model_dump() + **Users.get_user_by_id(message.user_id).model_dump() ).model_dump(), "name": form_data.name, }, @@ -601,7 +601,7 @@ async def remove_reaction_by_id_and_user_id_and_name( "data": { **message.model_dump(), "user": UserNameResponse( - **Users.get_user_by_id(user.id).model_dump() + **Users.get_user_by_id(message.user_id).model_dump() ).model_dump(), "name": form_data.name, },