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