atproto explorer
0
fork

Configure Feed

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

fix non TID collections

+6 -3
+6 -3
src/views/collection.tsx
··· 79 79 ) 80 80 .map((record) => { 81 81 const rkey = record.uri.split("/").pop()!; 82 - const timestamp = TID.parse(rkey).timestamp / 1000; 82 + const timestamp = 83 + TID.validate(rkey) ? 84 + TID.parse(rkey).timestamp / 1000 85 + : undefined; 83 86 return ( 84 87 <A 85 88 href={`${rkey}`} 86 89 class="hover:bg-neutral-300 dark:hover:bg-neutral-700" 87 90 > 88 91 <span class="text-lightblue-500">{rkey}</span> 89 - <Show when={TID.validate(rkey) && timestamp <= Date.now()}> 92 + <Show when={timestamp && timestamp <= Date.now()}> 90 93 <span class="ml-2 text-xs text-neutral-500 dark:text-neutral-400"> 91 - {getDateFromTimestamp(timestamp)} 94 + {getDateFromTimestamp(timestamp!)} 92 95 </span> 93 96 </Show> 94 97 </A>