Update controller signatures, fix mysql 8 support

pull/3340/head
Daniel Supernault 2022-03-30 20:33:34 -06:00
rodzic b7043afc9b
commit 72e3d89118
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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);

Wyświetl plik

@ -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()) {