A third party ATProto appview

backfill fix

Changed files
+3 -17
server
+3 -17
server/routes.ts
··· 722 722 ); 723 723 const isAdmin = await adminAuthService.isAdmin(did); 724 724 725 - // Trigger automatic backfill of liked posts in background (non-blocking) 726 - import('./services/auto-backfill-likes').then( 727 - ({ autoBackfillLikesService }) => { 728 - autoBackfillLikesService.checkAndBackfill(did).catch((err) => { 729 - console.error('[AUTO_BACKFILL_LIKES] Error:', err); 730 - }); 731 - } 732 - ); 733 - 734 - // Trigger automatic backfill of follows/followers and profiles in background (non-blocking) 735 - import('./services/auto-backfill-follows').then( 736 - ({ autoBackfillFollowsService }) => { 737 - autoBackfillFollowsService.checkAndBackfill(did).catch((err) => { 738 - console.error('[AUTO_BACKFILL_FOLLOWS] Error:', err); 739 - }); 740 - } 741 - ); 725 + // NOTE: Do NOT trigger backfill here - this is for admin panel login only. 726 + // Backfill should only be triggered when users log in via client apps 727 + // (XRPC createSession/refreshSession endpoints) or manually via backfill endpoints. 742 728 743 729 // Create JWT token for frontend 744 730 const token = authService.createSessionToken(did, did);