mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-02 17:57:57 -05:00
chore: format
This commit is contained in:
1 parent
d14e5c154f
commit
0c64e5d596
69 files changed
+4381
-4272
No files matched your search
@@ -271,11 +271,7 @@ async def hydrate(rows, db):
|
||||
for row in rows:
|
||||
resource = objects.get(row.resource_type, {}).get(row.resource_id)
|
||||
obj = objects.get(row.object_type, {}).get(row.object_id)
|
||||
title = (
|
||||
getattr(resource, 'title', None)
|
||||
or getattr(resource, 'name', None)
|
||||
or ''
|
||||
)
|
||||
title = getattr(resource, 'title', None) or getattr(resource, 'name', None) or ''
|
||||
preview = (
|
||||
replace_mentions(getattr(obj, 'content', '') or '')[:300]
|
||||
if row.object_type in {'comment', 'message'}
|
||||
|
||||
Reference in new issue
Block a user