From 2ec98dfefc9501e61a18793377c3d369f991672c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 17 Jul 2022 17:17:09 +0100 Subject: [PATCH] Improve mentions count estimate --- inbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inbox.py b/inbox.py index 584da08f1..b4ba1c3a0 100644 --- a/inbox.py +++ b/inbox.py @@ -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: