personal web client for Bluesky
typescript solidjs bluesky atcute

refactor: skip fetching reply context if self-reply

mary.my.id dc797cc2 d18103ac

verified
Changed files
+15
src
components
+15
src/components/timeline/post-reply-context.tsx
··· 49 49 return <div class="mb-0.5 flex text-de text-contrast-muted">Replying to you</div>; 50 50 } 51 51 52 + if (did === post.author.did) { 53 + return ( 54 + <div class="mb-0.5 flex text-de text-contrast-muted"> 55 + <span class="shrink-0 whitespace-pre">Replying to </span> 56 + <a 57 + dir="auto" 58 + href={`/${did}`} 59 + class="overflow-hidden text-ellipsis whitespace-nowrap font-semibold hover:underline" 60 + > 61 + {/* @once */ post.author.handle.toLowerCase()} 62 + </a> 63 + </div> 64 + ); 65 + } 66 + 52 67 const profile = createProfileQuery(() => did, { 53 68 batched: true, 54 69 staleTime: Infinity,