Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(x-archive): drop plain reposts from an Article's reader responses so only real replies and quotes count

nirholasfa2042cc4825
diff --git a/scripts/x-articles-pull.mjs b/scripts/x-articles-pull.mjs
index cdfbcbbcf..ca612d7f0 100644
--- a/scripts/x-articles-pull.mjs
+++ b/scripts/x-articles-pull.mjs
@@ -82,7 +82,10 @@ async function collect(paginator) {
const posts = [];
for await (const post of paginator) posts.push(post);
const users = new Map((paginator.includes?.users || []).map((u) => [u.id, u]));
- return posts.map((post) => {
+ // A repost of a post that quotes the Article comes back from the quotes
+ // endpoint too. It carries no words of its own, so it is not a response.
+ const isRepost = (post) => (post.referenced_tweets || []).some((ref) => ref.type === 'retweeted');
+ return posts.filter((post) => !isRepost(post)).map((post) => {
const author = users.get(post.author_id);
return {
id: post.id,