Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some tweets not deleting from archive #39

Open
andatalily opened this issue Mar 24, 2024 · 4 comments
Open

Some tweets not deleting from archive #39

andatalily opened this issue Mar 24, 2024 · 4 comments

Comments

@andatalily
Copy link

Hi!

First I want to thank you for this amazing tool because i was able to delete some 60k tweets thanks to it using the archive method. However, some 7k tweets remain untouchable. Eventually every two weeks or so some of these tweets pop up on my profile, but since it's on mobile I'm forced to delete them by hand. When I download my updated archive, these tweets and medias are showing, but after running the script it just says deletion complete without any tweets being deleted.

Is there a way I can solve this or am I forced to wait until these old tweets pop up and delete them by hand? I want to use this old account as a professional account, and I don't want to start using it if i have to check twice a day whether older tweets are showing up or not right below my newer tweets.

Thank you in advance and have a nice day!

@dsnvs
Copy link

dsnvs commented Apr 18, 2024

@andatalily not sure why, but when reading from the archive, there is a feature to avoid deleting tweets that were created as replies to your own tweets (mostly affects threads).

The check used for this happens in the line 280:

if (!isInReplyToExcludedUser

You can delete the ! that appears in this line to change the behavior.

So it would become:

                if (isInReplyToExcludedUser

@andatalily
Copy link
Author

@dsnvs just tried, i still get the same result which is a deletion complete but no tweets were actually deleted. however it seems to be the issue since the only tweets that remained and popped up here and there were answers

@dsnvs
Copy link

dsnvs commented Apr 18, 2024

@andatalily Just to be sure, you are using the archive, right?

You could also try to edit this:

DeleteTweets/main.js

Lines 280 to 287 in e193d28

if (!isInReplyToExcludedUser
&& ((delete_options["unretweet"] == true && startsWithRT == true) || (delete_options["unretweet"] == false && startsWithRT == false))
&& check_filter_archive(tweet_obj)) {
;
}
else {
return;
}

From:

                if (!isInReplyToExcludedUser
					&& ((delete_options["unretweet"] == true && startsWithRT == true) || (delete_options["unretweet"] == false && startsWithRT == false))
					&& check_filter_archive(tweet_obj)) {
					;
				}
				else {
					return;
				}

To:

                if (!check_filter_archive(tweet_obj)) {
					return;
				}

Beware, though, this will delete RTs and it might unexpectedly delete other tweets that are outside of the filters you set.

@andatalily
Copy link
Author

@dsnvs yes absolutely, and i get this after uploading tweets.js, tweet-headers.js and even the deleted-tweets.js that deleted a few. and it's fine for the rts and everything, my intent is going down to 0 tweets!

i tried changing the code and i managed to delete some 3 rts, but apart from those i still have 1583 tweets and 5 medias that just won't go. i was able to delete most tweets by asking for my archive again and running the process again with fewer tweets to delete, but it just deletes nothing now, when the tweets and medias do appear in the archive files (js files and folders)..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants