I recently installed the Twitter module on codebrews and Stephanie and Elliott and quickly discovered that updates for protected accounts were not being pulled in. I went through the normal steps, checking watchdog, searching the project page for an open issue, etc, but came up empty handed. Since I'm comfortable with Drupal and modifying modules I decided to dive in head first and attempt to fix the problem. Long story short, two problems existed that prevented protected accounts from loading correctly:
- The account's protected status was not checked before the account is saved, causing the initial import to fail with a 401 error
- Twitter was returning a boolean true value in its account object, but this was not being translated correctly somewhere between twitter_cache_account() and drupal_write_record()
These problems were easy enough to fix, but unfortunately (or maybe not) the module's dev version has already changed significantly from the last version and therefore cannot be patched. The dev version had lots of issues when I tried to run it and since I don't have the luxury of a dev environment for my personal sites (really I'm just too lazy to set one up) I wasn't able to figure out if the problem still exists in the new version. Just in case anyone else stumbles upon this (and for my own records) I'm attaching the patch here for my fix. I'm hoping that the updated dev version is a sign that the module maintainers are on top of the problem and that this will all be moot whenever the next version is released, but if not I'll be ready to patch that one too!