summary refs log tree commit diff
path: root/synapse/rest/media/v1
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2016-12-01 13:11:37 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2016-12-01 13:12:13 +0100
commit32c8b5507c51798e8a5985a98d2302481362be87 (patch)
tree013c5443902f9453f1f8d4f22b032da70371afc5 /synapse/rest/media/v1
parentMerge pull request #1654 from matrix-org/rav/no_more_refresh_tokens (diff)
downloadsynapse-32c8b5507c51798e8a5985a98d2302481362be87.tar.xz
preview_url_resource: Ellipsis must be in unicode string
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'synapse/rest/media/v1')
-rw-r--r--synapse/rest/media/v1/preview_url_resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/media/v1/preview_url_resource.py b/synapse/rest/media/v1/preview_url_resource.py
index 33f35fb44e..6a5a57102f 100644
--- a/synapse/rest/media/v1/preview_url_resource.py
+++ b/synapse/rest/media/v1/preview_url_resource.py
@@ -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