this repo has no description
0
fork

Configure Feed

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

Use `app.bsky.richtext.facet` instead of `entities` (#1)

* Use `app.bsky.richtext.facet` instead of `entities`

* Use single quotes

authored by

Kim Hallberg and committed by
GitHub
2d499880 83c11f3a

+9 -5
+9 -5
index.ts
··· 16 16 const bleet = 'You can find the code for this bleet >>>here<<<, with a link card, a title and a description!'; 17 17 await agent.post({ 18 18 text: bleet, 19 - entities: [ 19 + facets: [ 20 20 { 21 - index: { start: bleet.indexOf('>>>') + 3, end: bleet.indexOf('<<<') }, 22 - type: 'link', 23 - value: 'https://github.com/aliceisjustplaying/atproto-starter-kit', 24 - }, 21 + index: { byteStart: bleet.indexOf('>>>') + 3, byteEnd: bleet.indexOf('<<<') }, 22 + features: [ 23 + { 24 + $type: 'app.bsky.richtext.facet#link', 25 + uri: 'https://github.com/aliceisjustplaying/atproto-starter-kit', 26 + } 27 + ] 28 + } 25 29 ], 26 30 embed: { 27 31 $type: 'app.bsky.embed.external',