handy online tools for AT Protocol boat.kelinci.net
atproto bluesky atcute typescript solidjs
20
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: incorrect recovery check

Mary bdea9779 0cbef88a

+10 -4
+10 -4
src/views/identity/plc-applicator.tsx
··· 1048 1048 return; 1049 1049 } 1050 1050 1051 - const date = new Date(entry.createdAt); 1052 - const diff = Date.now() - date.getTime(); 1053 - if (idx !== length - 1 && diff / (1000 * 60 * 60) > 72) { 1054 - return; 1051 + // If it's not the last entry, check if the next entry ahead of this one 1052 + // was made within the last 72 hours. 1053 + if (idx !== length - 1) { 1054 + const next = logs[idx + 1]!; 1055 + const date = new Date(next.createdAt); 1056 + const diff = Date.now() - date.getTime(); 1057 + 1058 + if (diff / (1_000 * 60 * 60) > 72) { 1059 + return; 1060 + } 1055 1061 } 1056 1062 1057 1063 /** keys that potentially signed this operation */