summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-08-04 16:10:08 +0100
committerErik Johnston <erik@matrix.org>2016-08-04 16:10:08 +0100
commitb5525c76d1993038bd0343970ab41611401fc128 (patch)
treef7745ebdf0dfecae68ba87315388c13092fa7291 /synapse
parentTest summarization (diff)
downloadsynapse-b5525c76d1993038bd0343970ab41611401fc128.tar.xz
Typo
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 b2e2e7e624..4060593f7f 100644
--- a/synapse/rest/media/v1/preview_url_resource.py
+++ b/synapse/rest/media/v1/preview_url_resource.py
@@ -347,7 +347,7 @@ class PreviewUrlResource(Resource):
                     re.sub(r'\s+', '\n', el.text).strip()
                     for el in cloned_tree.iter() if el.text
                 )
-                og['og:description'] = _summarize_paragraphs(text_nodes)
+                og['og:description'] = summarize_paragraphs(text_nodes)
 
         # TODO: delete the url downloads to stop diskfilling,
         # as we only ever cared about its OG