my website at ewancroft.uk
6
fork

Configure Feed

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

fix: use $derived.by for fediverseCreator computation

$derived requires an expression, not an immediately-invoked function.
Use $derived.by() for complex reactive computations.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>

+2 -2
+2 -2
src/routes/+layout.svelte
··· 53 53 ); 54 54 55 55 // Compute fediverse:creator from AP instance and username 56 - const fediverseCreator = $derived(() => { 56 + const fediverseCreator = $derived.by(() => { 57 57 if (!data.apInstanceUrl || !data.apUsername) return null; 58 58 try { 59 59 return `${data.apUsername}@${new URL(data.apInstanceUrl).hostname}`; 60 60 } catch { 61 61 return null; 62 62 } 63 - })(); 63 + }); 64 64 </script> 65 65 66 66 <svelte:head>