this repo has no description

Fetch notifications before processing queue for better priority handling

- Changed order to fetch new notifications from server first
- Then queue new notifications with priority prefixes
- Finally process entire queue (old + new) in priority order

This ensures high-priority notifications (like those from cameron.pfiffer.org)
are discovered and queued immediately rather than waiting behind older messages.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

+2 -5
+2 -5
bsky.py
··· 673 def process_notifications(void_agent, atproto_client): 674 """Fetch new notifications, queue them, and process the queue.""" 675 try: 676 - # First, process any existing queued notifications 677 - load_and_process_queued_notifications(void_agent, atproto_client) 678 - 679 # Get current time for marking notifications as seen 680 logger.debug("Getting current time for notification marking...") 681 last_seen_at = atproto_client.get_current_time_iso() 682 683 - # Fetch ALL notifications using pagination 684 logger.info("Beginning notification fetch with pagination...") 685 all_notifications = [] 686 cursor = None ··· 754 else: 755 logger.debug("No new notifications to queue") 756 757 - # Process the queue (including any newly added notifications) 758 load_and_process_queued_notifications(void_agent, atproto_client) 759 760 except Exception as e:
··· 673 def process_notifications(void_agent, atproto_client): 674 """Fetch new notifications, queue them, and process the queue.""" 675 try: 676 # Get current time for marking notifications as seen 677 logger.debug("Getting current time for notification marking...") 678 last_seen_at = atproto_client.get_current_time_iso() 679 680 + # Fetch ALL notifications using pagination first 681 logger.info("Beginning notification fetch with pagination...") 682 all_notifications = [] 683 cursor = None ··· 751 else: 752 logger.debug("No new notifications to queue") 753 754 + # Now process the entire queue (old + new notifications) 755 load_and_process_queued_notifications(void_agent, atproto_client) 756 757 except Exception as e: