multiple twitter accounts causes confusion

rogermugs - January 9, 2009 - 06:27
Project:Twitter
Version:6.x-2.6
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

if i add a twitter account to my profile, then delete it and add another the system will get confused and use both accounts... if i have a 3rd or 4th it will just get more complicated.
i cannot post to twitter because it posts to whatever my first account created was.

#1

jaydub - March 11, 2009 - 19:27

it's possible that this is related to the problem reported here: #379678: No data added to {twitter_account} since that issue means that new twitter accounts are not added 100% correctly and in this case the delete of the not correctly created account does not remove the relevant row from the twitter_account (or twitter_user table - I can't recall) table.

#2

Richard Eriksson - March 14, 2009 - 01:42

Attached is a patch to dev that I claim will post to all Twitter accounts a user has where they've entered a password, but not (obviously) for those that don't have a password associated with them. (Adding a cross-reference to http://drupal.org/node/335459 )

AttachmentSize
twitter-multiple-accounts.patch-356379.txt 1.7 KB

#3

DanielTheViking - April 11, 2009 - 12:45

Subscribing.

#4

Richard Eriksson - April 27, 2009 - 05:48

Updating the patch for 2.3. Takes into account whether the password is set for the account, so that it doesn't display an error if it fails for a password not being set (since it would definitely fail).

AttachmentSize
twitter-401-authentication-335459.patch.txt 2.09 KB

#5

Richard Eriksson - June 7, 2009 - 22:43
Version:6.x-2.x-dev» 6.x-2.4

Updating for 2.4. This only modifies twitter.module: the twitter.inc modifications in the patch appear not to be necessary for this version.

AttachmentSize
twitter-401-authentication-2.4-356379.txt 475 bytes

#6

Richard Eriksson - October 25, 2009 - 01:33
Version:6.x-2.4» 6.x-2.6

Updating for 2.6. Adds some logic for the messages reported on successful post. It will only post a 'success' message to Drupal if there's a password set on the Twitter account. That is, since only an account with a password set can post to Twitter, it will not display a 'success' message for accounts without passwords in a user's settings.

AttachmentSize
twitter-multiple-accounts-api-356379.txt 1.96 KB
 
 

Drupal is a registered trademark of Dries Buytaert.