csr tangled client in solid-js
15

Configure Feed

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

fix links in search

dawn (May 21, 2026, 11:20 AM +0300) 90232f09 d45b8829

+6 -5
+6 -5
src/views/search.tsx
··· 178 178 const RepoThreadLink: Component<{ 179 179 kind: 'issue' | 'pull'; 180 180 repoDid: Did; 181 - ref: string; 181 + threadRef: string; 182 182 children: JSX.Element; 183 183 }> = (props) => { 184 184 const repoQuery = createQuery(() => ({ ··· 189 189 const href = createMemo(() => { 190 190 const repo = repoQuery.data; 191 191 if (!repo) return undefined; 192 - return props.kind === 'issue' ? issueHref(repo, props.ref) : pullHref(repo, props.ref); 192 + const fn = props.kind === 'issue' ? issueHref : pullHref; 193 + return fn(repo, props.threadRef); 193 194 }); 194 195 195 196 return ( ··· 222 223 ? (parent().record.value as { repo: Did }).repo 223 224 : (parent().record.value as { target: { repo: Did } }).target.repo); 224 225 return ( 225 - <RepoThreadLink kind={parent().kind} repoDid={repoDid()} ref={parent().record.uri}> 226 + <RepoThreadLink kind={parent().kind} repoDid={repoDid()} threadRef={parent().record.uri}> 226 227 comment on {parent().kind} 227 228 </RepoThreadLink> 228 229 ); ··· 296 297 </A> 297 298 </Match> 298 299 <Match when={props.hit.nsid === 'sh.tangled.repo.issue'}> 299 - <RepoThreadLink kind="issue" repoDid={(props.hit.value as { repo: Did }).repo} ref={props.hit.uri}> 300 + <RepoThreadLink kind="issue" repoDid={(props.hit.value as { repo: Did }).repo} threadRef={props.hit.uri}> 300 301 {title()} 301 302 </RepoThreadLink> 302 303 </Match> 303 304 <Match when={props.hit.nsid === 'sh.tangled.repo.pull'}> 304 - <RepoThreadLink kind="pull" repoDid={(props.hit.value as { target: { repo: Did } }).target.repo} ref={props.hit.uri}> 305 + <RepoThreadLink kind="pull" repoDid={(props.hit.value as { target: { repo: Did } }).target.repo} threadRef={props.hit.uri}> 305 306 {title()} 306 307 </RepoThreadLink> 307 308 </Match>