Update CommentController

This commit is contained in:
Daniel Supernault 2018-05-31 20:37:11 -06:00
parent 4ab0515e76
commit 82add854a8

View file

@ -33,6 +33,12 @@ class CommentController extends Controller
NewStatusPipeline::dispatch($reply, false);
return redirect($status->url());
if($request->ajax()) {
$response = ['code' => 200, 'msg' => 'Comment saved'];
} else {
$response = redirect($status->url());
}
return $response;
}
}