mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-20 17:37:23 +08:00
locale file & thank api
This commit is contained in:
@@ -17,7 +17,11 @@ class CommentController extends Controller
|
||||
{
|
||||
$torrentId = $request->torrent_id;
|
||||
$with = ['create_user', 'update_user'];
|
||||
$comments = Comment::query()->with($with)->where('torrent', $torrentId)->paginate();
|
||||
$comments = Comment::query()
|
||||
->with($with)
|
||||
->where('torrent', $torrentId)
|
||||
->whereHas('create_user')
|
||||
->paginate();
|
||||
$resource = CommentResource::collection($comments);
|
||||
$resource->additional([
|
||||
'page_title' => nexus_trans('comment.index.page_title'),
|
||||
|
||||
Reference in New Issue
Block a user