From 5041b9148516c00d764f0d008b018ad191276af6 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Sat, 9 Nov 2024 06:24:51 +0900 Subject: [PATCH] =?UTF-8?q?#8=20=E3=81=84=E3=81=84=E3=81=AD=E3=81=8B?= =?UTF-8?q?=E3=82=89=E8=87=AA=E5=88=86=E3=82=92=E9=99=A4=E5=A4=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 6feeda1..3afe32c 100644 --- a/main.py +++ b/main.py @@ -333,7 +333,8 @@ def get_target_posts ( timeline: Response = client.get_timeline () for feed in timeline.feed: - if any (target_word in feed.post.record.text.lower () for target_word in TARGET_WORDS): + if (feed.post.author.did != client.me.did + and any (target_word in feed.post.record.text.lower () for target_word in TARGET_WORDS)): posts.append (LikeParams({ 'uri': feed.post.uri, 'cid': feed.post.cid })) return posts