自動 Follow を追加

このコミットが含まれているのは:
2024-09-01 17:16:18 +09:00
コミット 756e5fde2f
+5 -3
ファイルの表示
@@ -15,9 +15,11 @@ def check_notifications (
for notification in (client.app.bsky.notification.list_notifications () for notification in (client.app.bsky.notification.list_notifications ()
.notifications): .notifications):
if ((not notification.is_read) if not notification.is_read:
and (notification.reason in ['mention', 'reply'])): if notification.reason in ['mention', 'reply']:
uris += [notification.uri] uris += [notification.uri]
elif notification.reason == 'follow':
client.follow (notification.ahthor.did)
client.app.bsky.notification.update_seen ({ 'seen_at': last_seen_at }) client.app.bsky.notification.update_seen ({ 'seen_at': last_seen_at })