Permalink
Browse files

Removed source parameter if using OAuth

  • Loading branch information...
1 parent 439ce38 commit b9f4121571176c058b9c104abd14fcb20d365667 @stevestreza stevestreza committed May 22, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 MGTwitterEngine.m
View
@@ -460,7 +460,9 @@ - (NSString *)_sendRequestWithMethod:(NSString *)method
if (body) {
finalBody = [finalBody stringByAppendingString:body];
}
- if (_clientSourceToken) {
+
+ // if using OAuth, Twitter already knows your application's name, so don't send it
+ if (_clientSourceToken && _accessToken == nil) {
finalBody = [finalBody stringByAppendingString:[NSString stringWithFormat:@"%@source=%@",
(body) ? @"&" : @"" ,
_clientSourceToken]];

0 comments on commit b9f4121

Please sign in to comment.