adium-1.4 3091:6e8f5a4ded8a: Enable the retweet link by default ...

commits at adium.im commits at adium.im
Mon Oct 18 05:54:44 UTC 2010


details:	http://hg.adium.im/adium-1.4/rev/6e8f5a4ded8a
revision:	3091:6e8f5a4ded8a
author:		Evan Schoenberg
date:		Mon Oct 18 00:54:37 2010 -0500

Enable the retweet link by default (does this really need to be a preference at all?) and added a code comment.

diffs (24 lines):

diff -r da0b923fe3e7 -r 6e8f5a4ded8a Plugins/Twitter Plugin/AITwitterAccount.m
--- a/Plugins/Twitter Plugin/AITwitterAccount.m	Sun Oct 17 22:55:16 2010 -0500
+++ b/Plugins/Twitter Plugin/AITwitterAccount.m	Mon Oct 18 00:54:37 2010 -0500
@@ -91,6 +91,7 @@
 	[adium.preferenceController registerDefaults:[NSDictionary dictionaryWithObjectsAndKeys:
 												  [NSNumber numberWithInt:TWITTER_UPDATE_INTERVAL_MINUTES], TWITTER_PREFERENCE_UPDATE_INTERVAL,
 												  [NSNumber numberWithBool:YES], TWITTER_PREFERENCE_UPDATE_AFTER_SEND,
+												  [NSNumber numberWithBool:YES], TWITTER_PREFERENCE_RETWEET_SPAM,
 												  [NSNumber numberWithBool:YES], TWITTER_PREFERENCE_LOAD_CONTACTS, nil]
 										forGroup:TWITTER_PREFERENCE_GROUP_UPDATES
 										  object:self];
@@ -156,6 +157,12 @@
 	
 	if (self.useOAuth) {
 		if (!self.passwordWhileConnected.length) {
+			/* If we weren't able to retrieve the 'password', we can't proceed with oauth - we stored the oauth
+			 * http response body in the keychain as the password.
+			 *
+			 * Note that this can happen not only if Adium isn't authorized but also if it *is* authorized but the
+			 * keychain was inaccessible - e.g. keychain access wasn't allowed after an upgrade. Hm.
+			 */
 			[self setLastDisconnectionError:TWITTER_OAUTH_NOT_AUTHORIZED];
 			
 			[[NSNotificationCenter defaultCenter] postNotificationName:@"AIEditAccount"




More information about the commits mailing list