@@ -16,12 +16,6 @@ function getBlueskyUsername(url: string): string | undefined {
1616}
1717
1818// Get Bluesky profile link from username
19- function getBlueskyProfileLink ( username : string ) : string {
20- // Remove any leading @ if present
21- const cleanUsername = username . replace ( / ^ @ / , "" ) ;
22- return `https://bsky.app/profile/${ cleanUsername } ` ;
23- }
24-
2519// Get @username @instance .tld from Mastodon URL
2620function getMastodonUsername ( url : string ) : string | undefined {
2721 if ( ! url ) return undefined ;
@@ -42,7 +36,7 @@ function getLinkedInUsernameHandler(url: string): string | undefined {
4236 return undefined ;
4337}
4438
45- export const GET : APIRoute = async ( { params , request } ) => {
39+ export const GET : APIRoute = async ( ) => {
4640 const limit = Infinity ;
4741 const speakers = await getCollection ( "speakers" ) ;
4842 const exclude = [
@@ -64,15 +58,15 @@ export const GET: APIRoute = async ({ params, request }) => {
6458
6559 // Tailor message templates for each platform using appropriate handle formats
6660 const message_template = {
67- instagram : ( { name, talkTitle, talkUrl } ) =>
61+ instagram : ( { name, talkTitle } ) =>
6862 `Join ${ name } at EuroPython for "${ talkTitle } ".` ,
6963
7064 x : ( { name, handle, talkTitle, talkUrl } ) =>
7165 handle
7266 ? `Join ${ name } (${ handle } ) at EuroPython for "${ talkTitle } ". Talk: ${ talkUrl } `
7367 : `Join ${ name } at EuroPython for "${ talkTitle } ". Talk: ${ talkUrl } ` ,
7468
75- linkedin : ( { name, handle , talkTitle, talkUrl } ) =>
69+ linkedin : ( { name, talkTitle } ) =>
7670 `Join ${ name } at EuroPython for "${ talkTitle } ".` ,
7771
7872 bsky : ( { name, handle, talkTitle, talkUrl } ) =>
0 commit comments