a tool for shared writing and social publishing
0
fork

Configure Feed

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

use image route for icons

+3 -3
+1 -1
app/lish/[did]/[publication]/dashboard/PublicationDashboard.tsx
··· 20 20 <div 21 21 className="shrink-0 w-5 h-5 rounded-full" 22 22 style={{ 23 - backgroundImage: `url(https://bsky.social/xrpc/com.atproto.sync.getBlob?did=${props.did}&cid=${(props.icon.ref as unknown as { $link: string })["$link"]})`, 23 + backgroundImage: `url(/api/atproto_images?did=${props.did}&cid=${(props.icon.ref as unknown as { $link: string })["$link"]})`, 24 24 backgroundRepeat: "no-repeat", 25 25 backgroundPosition: "center", 26 26 backgroundSize: "cover",
+1 -1
app/lish/[did]/[publication]/page.tsx
··· 67 67 <div 68 68 className="shrink-0 w-10 h-10 rounded-full" 69 69 style={{ 70 - backgroundImage: `url(https://bsky.social/xrpc/com.atproto.sync.getBlob?did=${did}&cid=${(record.icon.ref as unknown as { $link: string })["$link"]})`, 70 + backgroundImage: `url(/api/atproto_images?did=${did}&cid=${(record.icon.ref as unknown as { $link: string })["$link"]})`, 71 71 backgroundRepeat: "no-repeat", 72 72 backgroundPosition: "center", 73 73 backgroundSize: "cover",
+1 -1
app/lish/createPub/UpdatePubForm.tsx
··· 31 31 setDescriptionValue(record.description || ""); 32 32 if (record.icon) 33 33 setIconPreview( 34 - `url(https://bsky.social/xrpc/com.atproto.sync.getBlob?did=${pubData.identity_did}&cid=${(record.icon.ref as unknown as { $link: string })["$link"]})`, 34 + `url(/api/atproto_images?did=${pubData.identity_did}&cid=${(record.icon.ref as unknown as { $link: string })["$link"]})`, 35 35 ); 36 36 }, [pubData]); 37 37 let toast = useToaster();