pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

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

Fix some issues with init of turnstile hopefully

+5 -1
+2 -1
src/components/overlays/OverlayDisplay.tsx
··· 9 9 useInternalOverlayRouter, 10 10 useRouterAnchorUpdate, 11 11 } from "@/hooks/useOverlayRouter"; 12 - import { TurnstileProvider } from "@/stores/turnstile"; 12 + import { TurnstileProvider, getTurnstile } from "@/stores/turnstile"; 13 13 14 14 export interface OverlayProps { 15 15 id: string; ··· 20 20 function TurnstileInteractive() { 21 21 const { t } = useTranslation(); 22 22 const [show, setShow] = useState(false); 23 + getTurnstile(); 23 24 24 25 // this may not rerender with different dom structure, must be exactly the same always 25 26 return (
+3
src/stores/turnstile/index.tsx
··· 81 81 const turnstile = getTurnstile(); 82 82 try { 83 83 // I hate turnstile 84 + if (turnstile.controls.isExpired()) { 85 + turnstile.controls.reset(); 86 + } 84 87 (window as any).turnstile.execute( 85 88 document.querySelector(`#${turnstile.id}`), 86 89 {},