a tool for shared writing and social publishing
0
fork

Configure Feed

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

support embedding post links from blacksky + other clients

+6 -3
+6 -3
components/Blocks/TextBlock/index.tsx
··· 318 318 ); 319 319 } 320 320 321 + const blueskyclients = ["blacksky.community/", "bsky.app/", "witchsky.app/"]; 322 + 321 323 const BlockifyLink = (props: { 322 324 entityID: string; 323 325 editorState: EditorState | undefined; ··· 329 331 let focused = useUIState((s) => s.focusedEntity?.entityID === props.entityID); 330 332 331 333 let isBlueskyPost = 332 - editorState?.doc.textContent.includes("bsky.app/") && 333 - editorState?.doc.textContent.includes("post"); 334 - // only if the line stats with http or https and doesn't have other content 334 + blueskyclients.some((client) => 335 + editorState?.doc.textContent.includes(client), 336 + ) && editorState?.doc.textContent.includes("post"); 337 + // only if the line starts with http or https and doesn't have other content 335 338 // if its bluesky, change text to embed post 336 339 337 340 if (