1
0
Fork 0
forked from mirror/pixelfed

Update controller signatures, fix mysql 8 support

This commit is contained in:
Daniel Supernault 2022-03-30 20:33:34 -06:00
parent b7043afc9b
commit 72e3d89118
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 2 additions and 2 deletions

View file

@ -128,7 +128,7 @@ class PublicApiController extends Controller
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();
$status = Status::whereProfileId($profile->id)->findOrFail($postid);

View file

@ -29,7 +29,7 @@ use App\Services\ReblogService;
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
if($request->user()) {