@@ -85,7 +85,7 @@ export function SocialShare({
8585 className = { styles . socialLink }
8686 href = { createUrlWithQuery ( 'https://www.linkedin.com/sharing/share-offsite' , {
8787 url,
88- text : ` ${ title } \n\n ${ summary } \n\n${ url } ` ,
88+ text : [ title , summary , url ] . filter ( Boolean ) . join ( ' \n\n' ) ,
8989 } ) }
9090 onClick = { ( ) => trackSharingEvent ( SocialNetwork . LINKEDIN ) }
9191 rel = "noopener noreferrer"
@@ -131,7 +131,7 @@ export function SocialShare({
131131 aria-label = { generateAriaLabel ( SocialNetwork . MASTODON ) }
132132 className = { styles . socialLink }
133133 href = { createUrlWithQuery ( 'https://mastodon.social/share' , {
134- text : ` ${ title } \n\n ${ summary } \n\n${ url } ` ,
134+ text : [ title , summary , url ] . filter ( Boolean ) . join ( ' \n\n' ) ,
135135 } ) }
136136 onClick = { ( ) => trackSharingEvent ( SocialNetwork . MASTODON ) }
137137 rel = "noopener noreferrer"
@@ -148,7 +148,7 @@ export function SocialShare({
148148 href = { createUrlWithQuery ( 'https://pinterest.com/pin/create/button/' , {
149149 url,
150150 media : thumbnailUrl ,
151- description : ` ${ title } . ${ summary } ` ,
151+ description : [ title , summary ] . filter ( Boolean ) . join ( ' ' ) ,
152152 } ) }
153153 onClick = { ( ) => trackSharingEvent ( SocialNetwork . PINTEREST ) }
154154 rel = "noopener noreferrer"
0 commit comments