diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2019-11-05 16:46:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-05 16:46:39 +0000 |
commit | e78167c94b3f63136f7d0e4f32a05ad1befdc0ec (patch) | |
tree | cdfdfbfd73eceb822e4944a9506dd61ce0870f23 /synapse/rest/media/v1 | |
parent | Strip overlong OpenGraph data from url preview (diff) | |
download | synapse-e78167c94b3f63136f7d0e4f32a05ad1befdc0ec.tar.xz |
Apply suggestions from code review
Co-Authored-By: Brendan Abolivier <babolivier@matrix.org> Co-Authored-By: Erik Johnston <erik@matrix.org>
Diffstat (limited to 'synapse/rest/media/v1')
-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 6d8c39a410..4d4b3c1462 100644 --- a/synapse/rest/media/v1/preview_url_resource.py +++ b/synapse/rest/media/v1/preview_url_resource.py @@ -518,7 +518,7 @@ def _calc_og(tree, media_uri): if "content" in tag.attrib: # if we've got more than 50 tags, someone is taking the piss if len(og) >= 50: - logger.warning("skipping OG for page with too many og: tags") + logger.warning("Skipping OG for page with too many 'og:' tags") return {} og[tag.attrib["property"]] = tag.attrib["content"] |