commit 0e7d41ebc4faf040c62a630c7f01ab5a8e31e218
parent 89481a2c8e0adc91a12fb2945b28734fc73c4957
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 18 Nov 2026 21:05:50 -0500
e2e: the fake gallery-dl continues from a resume point instead of printing the timeline's top again
A resumed backfill whose first posts are the timeline's newest is stopped as one that began again from
the top; the fake ignored the place it was handed and printed its three posts again, which is exactly
that. social-channel.spec's Resume backfill test had not been run since the rule was built.
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat:
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/editor/e2e/fixtures/bin/fake-gallery-dl.mjs b/editor/e2e/fixtures/bin/fake-gallery-dl.mjs
@@ -138,7 +138,16 @@ const TWEETS = [
},
];
-for (const tweet of TWEETS.slice(0, limit)) {
+// A RESUMED WALK IS BELOW WHAT IT SHOWED BEFORE. Handed a resume point
+// (`-o extractor.twitter.cursor=<place>`; "1/" asks for the top), the real
+// gallery-dl continues from it and never prints the timeline's newest posts
+// again: a resumed backfill whose first posts ARE the newest is taken for one
+// that began again from the top, and is stopped (xGalleryDlFetcher.ts). This
+// account has three posts, so below them is the timeline's end: nothing more.
+const place = args.find((a) => a.startsWith("extractor.twitter.cursor="))?.slice("extractor.twitter.cursor=".length);
+const resumed = Boolean(place) && place !== "1/";
+
+for (const tweet of resumed ? [] : TWEETS.slice(0, limit)) {
process.stdout.write(JSON.stringify(tweet) + "\n");
}