Deleted tweets on twitter account are not deleted on the site and there is currently no way to delete it. any suggestion?

Comments

Anonymous’s picture

It would be nice to have an option to re-sync tweets.

r-mo’s picture

Quick patch to check the most recent 10 statuses for deleted tweets, on each cron.

damienmckenna’s picture

Version: 7.x-5.8 » 7.x-5.x-dev
Status: Active » Needs work
Issue tags: -delete tweets

Needs a little work to adhere to the Drupal coding standards.

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new4.1 KB

This has been rerolled, updated to the Drupal coding standards, and I added an item to hook_uninstall for the new variable.

alfthecat’s picture

Patch applies cleanly and it works brilliantly too! Just need to set "remove deleted twitter statuses of site users" on the main settings page.

Thanks so much!!

hkirsman’s picture

#4 works!

damienmckenna’s picture

Category: Bug report » Feature request
damienmckenna’s picture

damienmckenna’s picture

StatusFileSize
new5.57 KB

Rerolled. I've also tidied up the code a little in twitter_remove_deleted_statuses() and expanded its check with a new setting that allows the site builder to control how many tweets will be checked at once.

damienmckenna’s picture

Oh, I also changed from using db_query() to db_query_range().

rbrandon’s picture

Patch looks good. as long as the re-fetch is occurring it might be nice to check for updated tweets as well. Any word on this getting rolled into the module?