File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ - (void)goToAddCommentWithParams:(NSMutableDictionary *)params{
162
162
AddMDCommentViewController *vc = [AddMDCommentViewController new ];
163
163
vc.curProject = _curProject;
164
164
165
- NSString *requestPath = [[self .linkUrlStr componentsSeparatedByString: @" /git" ] firstObject ];
165
+ NSString *requestPath = [[self .linkUrlStr componentsSeparatedByString: @" /git/ " ] firstObject ];
166
166
requestPath = [requestPath stringByAppendingString: @" /git/line_notes" ];
167
167
vc.requestPath = requestPath;
168
168
@@ -191,7 +191,7 @@ - (void)goToAddCommentWithParams:(NSMutableDictionary *)params{
191
191
}
192
192
193
193
- (void )doDeleteCommentWithParams : (NSMutableDictionary *)params {
194
- NSString *requestPath = [[self .linkUrlStr componentsSeparatedByString: @" /git" ] firstObject ];
194
+ NSString *requestPath = [[self .linkUrlStr componentsSeparatedByString: @" /git/ " ] firstObject ];
195
195
requestPath = [requestPath stringByAppendingFormat: @" /git/line_notes/%@ " , params[@" clicked_line_note_id" ]];
196
196
[[Coding_NetAPIManager sharedManager ] request_DeleteLineNoteWithPath: requestPath andBlock: ^(id data, NSError *error) {
197
197
[self refresh ];
You can’t perform that action at this time.
0 commit comments