fixed #37
This commit is contained in:
parent
3f77cdce6b
commit
43c7e2aee7
1 changed files with 1 additions and 0 deletions
|
@ -240,6 +240,7 @@
|
||||||
- (IBAction)sendTweet:(id)sender {
|
- (IBAction)sendTweet:(id)sender {
|
||||||
TweetModel *tweet = (TweetModel *)[sender object];
|
TweetModel *tweet = (TweetModel *)[sender object];
|
||||||
NSString *text = [[tweet.text stringByReplacingOccurrencesOfString:@"\\" withString:@"\\\\"] stringByReplacingOccurrencesOfString:@"\"" withString:@"\\\""];
|
NSString *text = [[tweet.text stringByReplacingOccurrencesOfString:@"\\" withString:@"\\\\"] stringByReplacingOccurrencesOfString:@"\"" withString:@"\\\""];
|
||||||
|
text = [text stringByReplacingOccurrencesOfString:@"\n" withString:@"\\n"];
|
||||||
NSString *func = [NSString stringWithFormat:@"tentia_instance.sendNewMessage(\"%@\", \"%@\", \"%@\")",
|
NSString *func = [NSString stringWithFormat:@"tentia_instance.sendNewMessage(\"%@\", \"%@\", \"%@\")",
|
||||||
text,
|
text,
|
||||||
tweet.inReplyTostatusId,
|
tweet.inReplyTostatusId,
|
||||||
|
|
Reference in a new issue