summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@arasphere.net>2016-12-03 01:34:59 +0000
committerGitHub <noreply@github.com>2016-12-03 01:34:59 +0000
commit7a00178832184df29c4fb6c24836f9a851fd69ec (patch)
tree013c5443902f9453f1f8d4f22b032da70371afc5 /synapse
parentMerge pull request #1654 from matrix-org/rav/no_more_refresh_tokens (diff)
parentpreview_url_resource: Ellipsis must be in unicode string (diff)
downloadsynapse-7a00178832184df29c4fb6c24836f9a851fd69ec.tar.xz
Merge pull request #1664 from kyrias/preview-url-resource-encoding
preview_url_resource: Ellipsis must be in unicode string
Diffstat (limited to 'synapse')
-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