diff options
author | Matthew Hodgson <matthew@arasphere.net> | 2016-12-03 01:34:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-03 01:34:59 +0000 |
commit | 7a00178832184df29c4fb6c24836f9a851fd69ec (patch) | |
tree | 013c5443902f9453f1f8d4f22b032da70371afc5 | |
parent | Merge pull request #1654 from matrix-org/rav/no_more_refresh_tokens (diff) | |
parent | preview_url_resource: Ellipsis must be in unicode string (diff) | |
download | synapse-7a00178832184df29c4fb6c24836f9a851fd69ec.tar.xz |
Merge pull request #1664 from kyrias/preview-url-resource-encoding
preview_url_resource: Ellipsis must be in unicode string
-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 |