#8 いいねから自分を除外

このコミットが含まれているのは:
2024-11-09 06:24:51 +09:00
コミット 5041b91485
+2 -1
ファイルの表示
@@ -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