Improve mentions count estimate

main
Bob Mottram 2022-07-17 17:17:09 +01:00
parent 1efcea73e0
commit 2ec98dfefc
1 changed files with 1 additions and 1 deletions

View File

@ -2578,7 +2578,7 @@ def populate_replies(base_dir: str, http_prefix: str, domain: str,
def _estimate_number_of_mentions(content: str) -> int:
"""Returns a rough estimate of the number of mentions
"""
return int(content.count('@') / 2)
return content.count('>@<')
def _estimate_number_of_emoji(content: str) -> int: