mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update CommentController
This commit is contained in:
parent
4ab0515e76
commit
82add854a8
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue