mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-25 22:10:47 +00:00
Update CommentController, add showAll() method
This commit is contained in:
parent
a22a5c2922
commit
d9ec94ba65
1 changed files with 8 additions and 0 deletions
|
@ -18,6 +18,14 @@ class CommentController extends Controller
|
||||||
return view('status.reply', compact('user', 'status'));
|
return view('status.reply', compact('user', 'status'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function showAll(Request $request, $username, int $id)
|
||||||
|
{
|
||||||
|
$user = Profile::whereUsername($username)->firstOrFail();
|
||||||
|
$status = Status::whereProfileId($user->id)->findOrFail($id);
|
||||||
|
$replies = Status::whereInReplyToId($id)->paginate(40);
|
||||||
|
return view('status.comments', compact('user', 'status', 'replies'));
|
||||||
|
}
|
||||||
|
|
||||||
public function store(Request $request)
|
public function store(Request $request)
|
||||||
{
|
{
|
||||||
if(Auth::check() === false) { abort(403); }
|
if(Auth::check() === false) { abort(403); }
|
||||||
|
|
Loading…
Reference in a new issue