From c96056f9a42dd7a59524df17cbbf7a5a6331aa57 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Thu, 27 Jul 2023 17:36:16 +0300 Subject: [PATCH] ignore direct --- src/listener_context.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/listener_context.py b/src/listener_context.py index 680dabb..eca7988 100644 --- a/src/listener_context.py +++ b/src/listener_context.py @@ -69,6 +69,10 @@ def scan_context_thread(): for status in descendants: id_st = status['id'] + visibility = status['visibility'] + if visibility == 'direct': + # Игнорируем личку + continue in_reply_acct = status['in_reply_to_account_id'] in_reply_id = status['in_reply_to_id'] muted = status['muted']