diff --git a/main.py b/main.py index 7b0d46d..7465106 100644 --- a/main.py +++ b/main.py @@ -15,9 +15,11 @@ def check_notifications ( for notification in (client.app.bsky.notification.list_notifications () .notifications): - if ((not notification.is_read) - and (notification.reason in ['mention', 'reply'])): - uris += [notification.uri] + if not notification.is_read: + if notification.reason in ['mention', 'reply']: + uris += [notification.uri] + elif notification.reason == 'follow': + client.follow (notification.ahthor.did) client.app.bsky.notification.update_seen ({ 'seen_at': last_seen_at })