File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Open diff view settings
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Open diff view settings
Original file line number Diff line number Diff 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 ];
You can’t perform that action at this time.
0 commit comments