Update comments, fix remote reply bug
This commit is contained in:
parent
e6b52471fb
commit
f33061642a
2 changed files with 3 additions and 3 deletions
|
@ -110,7 +110,7 @@ class PublicApiController extends Controller
|
|||
]);
|
||||
|
||||
$limit = $request->limit ?? 10;
|
||||
$profile = Profile::whereUsername($username)->whereNull('status')->firstOrFail();
|
||||
$profile = Profile::whereNull('status')->findOrFail($username);
|
||||
$status = Status::whereProfileId($profile->id)->whereCommentsDisabled(false)->findOrFail($postId);
|
||||
$this->scopeCheck($profile, $status);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue