Skip to content

Commit 8f97469

Browse files
committed
bugfix
1 parent 383214e commit 8f97469

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Coding_iOS/Controllers/FileChangeDetailViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ - (void)goToAddCommentWithParams:(NSMutableDictionary *)params{
162162
AddMDCommentViewController *vc = [AddMDCommentViewController new];
163163
vc.curProject = _curProject;
164164

165-
NSString *requestPath = [[self.linkUrlStr componentsSeparatedByString:@"/git"] firstObject];
165+
NSString *requestPath = [[self.linkUrlStr componentsSeparatedByString:@"/git/"] firstObject];
166166
requestPath = [requestPath stringByAppendingString:@"/git/line_notes"];
167167
vc.requestPath = requestPath;
168168

@@ -191,7 +191,7 @@ - (void)goToAddCommentWithParams:(NSMutableDictionary *)params{
191191
}
192192

193193
- (void)doDeleteCommentWithParams:(NSMutableDictionary *)params{
194-
NSString *requestPath = [[self.linkUrlStr componentsSeparatedByString:@"/git"] firstObject];
194+
NSString *requestPath = [[self.linkUrlStr componentsSeparatedByString:@"/git/"] firstObject];
195195
requestPath = [requestPath stringByAppendingFormat:@"/git/line_notes/%@", params[@"clicked_line_note_id"]];
196196
[[Coding_NetAPIManager sharedManager] request_DeleteLineNoteWithPath:requestPath andBlock:^(id data, NSError *error) {
197197
[self refresh];

0 commit comments

Comments
 (0)