Add a space to the emoji count estimate, to avoid too many false positives

main
Bob Mottram 2022-07-17 17:05:28 +01:00
parent 55177456e5
commit 1efcea73e0
1 changed files with 1 additions and 1 deletions

View File

@ -2584,7 +2584,7 @@ def _estimate_number_of_mentions(content: str) -> int:
def _estimate_number_of_emoji(content: str) -> int:
"""Returns a rough estimate of the number of emoji
"""
return int(content.count(':') / 2)
return content.count(' :')
def _valid_post_content(base_dir: str, nickname: str, domain: str,