diff --git a/app/Http/Controllers/CommentController.php b/app/Http/Controllers/CommentController.php index ec8fb9208..acf41df44 100644 --- a/app/Http/Controllers/CommentController.php +++ b/app/Http/Controllers/CommentController.php @@ -23,11 +23,7 @@ class CommentController extends Controller { public function showAll(Request $request, $username, int $id) { - $profile = Profile::whereNull(['status', 'domain'])->whereUsername($username)->firstOrFail(); - $status = Status::whereProfileId($profile->id)->findOrFail($id); - $replies = Status::whereInReplyToId($id)->simplePaginate(40); - - return view('status.comments', compact('profile', 'status', 'replies')); + abort(404); } public function store(Request $request) diff --git a/resources/views/status/comments.blade.php b/resources/views/status/comments.blade.php deleted file mode 100644 index 6d5da3cbb..000000000 --- a/resources/views/status/comments.blade.php +++ /dev/null @@ -1,41 +0,0 @@ -@extends('layouts.app') - -@section('content') - -
-
- -
-
-

- - {{ str_limit($status->profile->username, 15)}} - {!! $status->rendered ?? e($status->caption) !!} {{$status->created_at->diffForHumans(null, true, true ,true)}} -

-

All Comments

-
- @foreach($replies as $item) -

- - - {{ str_limit($item->profile->username, 15)}} - - - {!! $item->rendered ?? e($item->caption) !!} - - {{$item->created_at->diffForHumans(null, true, true ,true)}} - - -

- @endforeach - -
-
-
-
- {{ $replies->links() }} -
-
-
- -@endsection \ No newline at end of file