atproto
atproto copied to clipboard
@atproto/api agent.getAuthorFeed FeedView records don't validate
Description
Trying to pull my personal bsky feed data into my website and while parsing the records I found that the FeedView entries don't pass validation using isFeedViewPost despite the output schema claiming feed is FeedViewPost[].
To Reproduce codepen
Using @atproto/api^0.13.19:
const agent = new AtpAgent({ service: "https://api.bsky.app" });
const feedResponse = await agent.getAuthorFeed({
actor: "curiouslycory.com",
limit: 10
});
const feed = feedResponse.data.feed;
try {
const entry = feed[0];
console.log("entry", entry);
const res = isFeedViewPost(entry);
console.log("result is", res);
} catch (e) {
console.error(e);
}
Expected behavior
FeedViewRecords from any feed query should validate.
Details
- Operating system: Ubuntu 24
- Node version: v20.18.0