This commit is contained in:
Timothy Jaeryang Baek 2026-10-14 18:11:14 +04:00
parent 0d895443b4
commit 323139cdf5
6 changed files with 9 additions and 12 deletions

View file

@ -610,7 +610,9 @@ class ChannelTable:
self, channel_id: str, db: Optional[AsyncSession] = None
) -> list[ChannelMemberModel]:
async with get_async_db_context(db) as db:
result = await db.execute(select(ChannelMember).filter(ChannelMember.channel_id == channel_id, ChannelMember.user_id.is_not(None)))
result = await db.execute(
select(ChannelMember).filter(ChannelMember.channel_id == channel_id, ChannelMember.user_id.is_not(None))
)
memberships = result.scalars().all()
return [ChannelMemberModel.model_validate(membership) for membership in memberships]

View file

@ -305,6 +305,7 @@ class MessageTable:
"""Resolve user info from message, handling webhook messages."""
if message.app_id:
from open_webui.models.apps import App
app = await db.get(App, message.app_id)
return {
'id': message.app_id,

View file

@ -485,7 +485,9 @@ async def load_skill_from_url(url: str) -> list[dict]:
raise ValueError('Could not download the skill. Check that the URL is accessible.')
content_type = response.content_type
if content_type == 'text/html':
raise ValueError('The URL returned a web page. Use a raw skill file or a ZIP/.skill download link.')
raise ValueError(
'The URL returned a web page. Use a raw skill file or a ZIP/.skill download link.'
)
data = bytearray()
async for chunk in response.content.iter_chunked(64 * 1024):
data.extend(chunk)

View file

@ -117,10 +117,7 @@
};
const addTerminalConnection = (server: TerminalConnection) => {
terminalConnections = [
...terminalConnections,
{ ...server, id: server.id ?? uuidv4() }
];
terminalConnections = [...terminalConnections, { ...server, id: server.id ?? uuidv4() }];
saveTerminalServers();
};

View file

@ -682,7 +682,6 @@
}
onMount(() => {
const unsubscribe = channelRequestQueues.subscribe(() => {
files = [...files];
});

View file

@ -303,11 +303,7 @@
</div>
<div class="[&_.markdown-prose]:text-sm! [&_.markdown-prose]:leading-[1.375rem]!">
{#key event.reply}
<AppChannelReply
appId={event.app_id}
channelId={channel.id}
reply={event.reply}
/>
<AppChannelReply appId={event.app_id} channelId={channel.id} reply={event.reply} />
{/key}
</div>
<div class="mt-1.5 flex items-center gap-1.5 text-xs text-gray-500 dark:text-gray-400">