Skip to content

Commit

Permalink
fix #346
Browse files Browse the repository at this point in the history
  • Loading branch information
krzd committed Sep 20, 2013
1 parent 38ab9c1 commit cd010a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ShnergleApp/ShareViewController.m
Expand Up @@ -79,7 +79,7 @@ - (void)shareOnTwitter {
} else {
venueName = [(appDelegate.shnergleThis ? @"@ " : @"From ") stringByAppendingString:appDelegate.activeVenue[@"name"]];
}
[self postImage:self.image.image withStatus:[NSString stringWithFormat:@"%@ %@ #ShnergleIt", (self.textFieldname.text && [self.textFieldname.text isEqualToString:@"Write something..."]) ? @"" : self.textFieldname.text, venueName]];
[self postImage:self.image.image withStatus:[NSString stringWithFormat:@"%@ %@ #ShnergleIt", (self.textFieldname.text && [self.textFieldname.text isEqualToString:@"Write something..."]) ? ((![appDelegate.activeVenue[@"twitter"] isKindOfClass:[NSNull class]] && ![@"" isEqualToString : appDelegate.activeVenue[@"twitter"]]) ? @"." : @"") : self.textFieldname.text, venueName]];
if (appDelegate.shareVenue) {
[Request post:@"venue_shares/set" params:@{@"venue_id" : appDelegate.activeVenue[@"id"], @"media_id": @2} delegate:self callback:@selector(doNothing:)];
} else {
Expand Down

0 comments on commit cd010a0

Please sign in to comment.