Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //lisää RichText
- const { BskyAgent, AppBskyFeedPost, RichText } = require("@atproto/api");
- ...
- // funktion alussa muutoksia
- async function post(agent, item) {
- const rt = new RichText({ text: item.title });
- await rt.detectFacets(agent);
- let post = {
- $type: "app.bsky.feed.post",
- text: rt.text,
- facets: rt.facets,
- createdAt: new Date().toISOString(),
- };
- const dom = ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement