From 1efcea73e024b522263909068c4e99deb6ac9bf5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 17 Jul 2022 17:05:28 +0100 Subject: [PATCH] Add a space to the emoji count estimate, to avoid too many false positives --- inbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inbox.py b/inbox.py index 998ee2870..584da08f1 100644 --- a/inbox.py +++ b/inbox.py @@ -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,