diff options
author | Erik Johnston <erik@matrix.org> | 2016-08-04 16:10:08 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-08-04 16:10:08 +0100 |
commit | b5525c76d1993038bd0343970ab41611401fc128 (patch) | |
tree | f7745ebdf0dfecae68ba87315388c13092fa7291 /synapse | |
parent | Test summarization (diff) | |
download | synapse-b5525c76d1993038bd0343970ab41611401fc128.tar.xz |
Typo
Diffstat (limited to 'synapse')
-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 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 |