a tool for shared writing and social publishing

fix share links in postlisting

+12 -3
+12 -3
components/PostListing.tsx
··· 53 53 return; 54 54 } 55 55 let alpha = Number( 56 - window.getComputedStyle(elRef.current).getPropertyValue("--bg-page-alpha"), 56 + window 57 + .getComputedStyle(elRef.current) 58 + .getPropertyValue("--bg-page-alpha"), 57 59 ); 58 60 setHasBackgroundImage(alpha < 0.7); 59 61 }, [themeRecord?.backgroundImage?.image]); ··· 75 77 pubRecord?.preferences, 76 78 ); 77 79 78 - let quotes = props.documents.mentionsCount ?? props.documents.document_mentions_in_bsky?.[0]?.count ?? 0; 80 + let quotes = 81 + props.documents.mentionsCount ?? 82 + props.documents.document_mentions_in_bsky?.[0]?.count ?? 83 + 0; 79 84 let comments = 80 85 mergedPrefs.showComments === false 81 86 ? 0 ··· 281 286 let mouseY = e.clientY; 282 287 283 288 if (!props.postUrl) return; 284 - navigator.clipboard.writeText(`leaflet.pub${props.postUrl}`); 289 + navigator.clipboard.writeText( 290 + props.postUrl.includes("http") 291 + ? props.postUrl 292 + : `leaflet.pub/${props.postUrl}`, 293 + ); 285 294 286 295 smoker({ 287 296 text: <strong>Copied Link!</strong>,