1.1 --- a/Plugins/Twitter Plugin/AITwitterURLHandler.m Sat May 02 13:14:49 2009 -0400
1.2 +++ b/Plugins/Twitter Plugin/AITwitterURLHandler.m Thu Nov 19 21:12:23 2009 -0500
1.3 @@ -98,8 +98,10 @@
1.4 // No exact match. Fail.
1.5 return;
1.6 }
1.7 -
1.8 - if ([inAction isEqualToString:@"reply"] || [inAction isEqualToString:@"retweet"]) {
1.9 +
1.10 + if ([inAction isEqualToString:@"retweet"]) {
1.11 + [account retweetTweet:inTweet];
1.12 + } else if ([inAction isEqualToString:@"reply"]) {
1.13 AIChat *timelineChat = [adium.chatController existingChatWithName:account.timelineChatName
1.14 onAccount:account];
1.15
1.16 @@ -120,13 +122,7 @@
1.17 AIMessageEntryTextView *textView = ((AIMessageTabViewItem *)[timelineChat valueForProperty:@"MessageTabViewItem"]).messageViewController.textEntryView;
1.18
1.19 // Insert the @reply text
1.20 - NSString *prefix = nil;
1.21 -
1.22 - if (inMessage) {
1.23 - prefix = [NSString stringWithFormat:@"RT @%@ %@", inUser, [inMessage stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
1.24 - } else {
1.25 - prefix = [NSString stringWithFormat:@"@%@ ", inUser];
1.26 - }
1.27 + NSString *prefix = [NSString stringWithFormat:@"@%@ ", inUser];
1.28
1.29 if (![textView.string hasPrefix:prefix]) {
1.30 NSMutableAttributedString *newString;