mirror of
https://github.com/open-webui/open-webui
synced 2025-01-19 17:26:33 +00:00
fix
This commit is contained in:
parent
841f74894e
commit
16a48ef4eb
@ -532,7 +532,7 @@ async def add_reaction_to_message(
|
|||||||
"data": {
|
"data": {
|
||||||
**message.model_dump(),
|
**message.model_dump(),
|
||||||
"user": UserNameResponse(
|
"user": UserNameResponse(
|
||||||
**Users.get_user_by_id(user.id).model_dump()
|
**Users.get_user_by_id(message.user_id).model_dump()
|
||||||
).model_dump(),
|
).model_dump(),
|
||||||
"name": form_data.name,
|
"name": form_data.name,
|
||||||
},
|
},
|
||||||
@ -601,7 +601,7 @@ async def remove_reaction_by_id_and_user_id_and_name(
|
|||||||
"data": {
|
"data": {
|
||||||
**message.model_dump(),
|
**message.model_dump(),
|
||||||
"user": UserNameResponse(
|
"user": UserNameResponse(
|
||||||
**Users.get_user_by_id(user.id).model_dump()
|
**Users.get_user_by_id(message.user_id).model_dump()
|
||||||
).model_dump(),
|
).model_dump(),
|
||||||
"name": form_data.name,
|
"name": form_data.name,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user