+6
bsky.py
+6
bsky.py
···
234
'mention_preview': mention_text[:100] if mention_text else ''
235
})
236
237
+
# Check if handle is in allowed list (if configured)
238
+
allowed_handles = get_config().get('bot.allowed_handles', [])
239
+
if allowed_handles and author_handle not in allowed_handles:
240
+
logger.info(f"[{correlation_id}] Skipping mention from @{author_handle} (not in allowed_handles)")
241
+
return True # Remove from queue
242
+
243
# Retrieve the entire thread associated with the mention
244
try:
245
thread = atproto_client.app.bsky.feed.get_post_thread({