diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2016-12-01 13:11:37 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2016-12-01 13:12:13 +0100 |
commit | 32c8b5507c51798e8a5985a98d2302481362be87 (patch) | |
tree | 013c5443902f9453f1f8d4f22b032da70371afc5 /synapse/rest | |
parent | Merge pull request #1654 from matrix-org/rav/no_more_refresh_tokens (diff) | |
download | synapse-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')
-rw-r--r-- | synapse/rest/media/v1/preview_url_resource.py | 2 |
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 |