Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,9 +545,7 @@ async function main() {
let importedTweet = 0;
if (tweets != null && tweets.length > 0) {
const sortedTweets = tweets.sort((a, b) => {
let ad = new Date(a.tweet.created_at).getTime();
let bd = new Date(b.tweet.created_at).getTime();
return ad - bd;
return parseInt(a.tweet.id) - parseInt(b.tweet.id);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tweet ids are too big for JS, so don't parse them:

parseInt('1857820252878323986')
1857820252878324000

});

await rateLimitedAgent.login({ identifier: argv.blueskyUsername, password: argv.blueskyPassword });
Expand Down