forked from mirror/pixelfed
Update controller signatures, fix mysql 8 support
This commit is contained in:
parent
b7043afc9b
commit
72e3d89118
2 changed files with 2 additions and 2 deletions
|
@ -128,7 +128,7 @@ class PublicApiController extends Controller
|
||||||
return response()->json($res);
|
return response()->json($res);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function statusState(Request $request, $username, $postid)
|
public function statusState(Request $request, $username, int $postid)
|
||||||
{
|
{
|
||||||
$profile = Profile::whereUsername($username)->whereNull('status')->firstOrFail();
|
$profile = Profile::whereUsername($username)->whereNull('status')->firstOrFail();
|
||||||
$status = Status::whereProfileId($profile->id)->findOrFail($postid);
|
$status = Status::whereProfileId($profile->id)->findOrFail($postid);
|
||||||
|
|
|
@ -29,7 +29,7 @@ use App\Services\ReblogService;
|
||||||
|
|
||||||
class StatusController extends Controller
|
class StatusController extends Controller
|
||||||
{
|
{
|
||||||
public function show(Request $request, $username, $id)
|
public function show(Request $request, $username, int $id)
|
||||||
{
|
{
|
||||||
// redirect authed users to Metro 2.0
|
// redirect authed users to Metro 2.0
|
||||||
if($request->user()) {
|
if($request->user()) {
|
||||||
|
|
Loading…
Reference in a new issue