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 turnstiles mostly!

+6 -19
+5 -15
src/pages/parts/admin/WorkerTestPart.tsx
··· 90 90 } catch (err) { 91 91 const error = err as Error; 92 92 error.message = error.message.replace(worker.url, "WORKER_URL"); 93 - if ( 94 - error.message === 95 - '[Cloudflare Turnstile] Invalid or missing type for parameter "sitekey", expected "string", got "object".' 96 - ) { 97 - updateWorker(worker.id, { 98 - id: worker.id, 99 - status: "success", 100 - }); 101 - } else { 102 - updateWorker(worker.id, { 103 - id: worker.id, 104 - status: "error", 105 - error, 106 - }); 107 - } 93 + updateWorker(worker.id, { 94 + id: worker.id, 95 + status: "error", 96 + error, 97 + }); 108 98 } 109 99 }); 110 100
+1 -4
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 - } 87 84 (window as any).turnstile.execute( 88 85 document.querySelector(`#${turnstile.id}`), 89 86 {}, ··· 101 98 isInPopout?: boolean; 102 99 onUpdateShow?: (show: boolean) => void; 103 100 }) { 104 - const siteKey = conf().TURNSTILE_KEY?.toString(); 101 + const siteKey = conf().TURNSTILE_KEY; 105 102 const idRef = useRef<string | null>(null); 106 103 const setTurnstile = useTurnstileStore((s) => s.setTurnstile); 107 104 const processToken = useTurnstileStore((s) => s.processToken);