mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-22 13:12:30 +00:00
preview_url_resource: Ellipsis must be in unicode string
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
This commit is contained in:
1 parent
471200074b
commit
32c8b5507c
1 file changed
+1
-1
@@ -543,5 +543,5 @@ def summarize_paragraphs(text_nodes, min_size=200, max_size=500):
|
||||
|
||||
# We always add an ellipsis because at the very least
|
||||
# we chopped mid paragraph.
|
||||
description = new_desc.strip() + "…"
|
||||
description = new_desc.strip() + u"…"
|
||||
return description if description else None
|
||||
Reference in new issue
Block a user