mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-01 19:44:20 -04:00
Apply suggestions from code review
Co-Authored-By: Brendan Abolivier <babolivier@matrix.org> Co-Authored-By: Erik Johnston <erik@matrix.org>
This commit is contained in:
parent
e9bfe719ba
commit
e78167c94b
2 changed files with 2 additions and 1 deletions
|
@ -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"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue