mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-10 22:43:29 +00:00
fix(backend): provide fallback strings for webhook UserNameResponse to prevent Pydantic validation error
This commit is contained in:
parent
c40ea7f29d
commit
ae787105f7
1 changed files with 2 additions and 2 deletions
|
|
@ -788,8 +788,8 @@ async def get_pinned_channel_messages(
|
|||
webhook_info = message.meta.get('webhook') if message.meta else None
|
||||
if webhook_info:
|
||||
user_info = UserNameResponse(
|
||||
id=webhook_info.get('id'),
|
||||
name=webhook_info.get('name'),
|
||||
id=webhook_info.get('id') or '',
|
||||
name=webhook_info.get('name') or 'Webhook',
|
||||
role='webhook',
|
||||
)
|
||||
elif message.user_id in users:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue