summaryrefslogtreecommitdiff
path: root/Juick/APIClient.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-02 00:31:43 +0300
committerGravatar Vitaly Takmazov2018-04-02 00:31:43 +0300
commitf153a400634d4aa726dafd2257921b904c92824b (patch)
tree51ed90b89ccd0eebc4abc85a2e888b65009d34a1 /Juick/APIClient.m
parentc623f12b2d5e95708a3971e642410c9098f71285 (diff)
multiple fixes
Diffstat (limited to 'Juick/APIClient.m')
-rw-r--r--Juick/APIClient.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Juick/APIClient.m b/Juick/APIClient.m
index aa5530b..079db5a 100644
--- a/Juick/APIClient.m
+++ b/Juick/APIClient.m
@@ -86,7 +86,7 @@
[self.backgroundQueue addOperationWithBlock:^{
[manager POST:@"/comment" parameters:nil constructingBodyWithBlock:^(id<AFMultipartFormData> _Nonnull formData) {
[formData appendPartWithFormData:[[mid stringValue] dataUsingEncoding:NSUTF8StringEncoding] name:@"mid"];
- [formData appendPartWithFormData:[[rid stringValue] dataUsingEncoding:NSUTF8StringEncoding] name:@"rid"];
+ [formData appendPartWithFormData:[[NSString stringWithFormat:@"%d", [rid intValue]] dataUsingEncoding:NSUTF8StringEncoding] name:@"rid"];
[formData appendPartWithFormData:[text dataUsingEncoding:NSUTF8StringEncoding] name:@"body"];
} progress:nil success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
NSLog(@"Success!");