mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
commit
4e27fee344
2 changed files with 13 additions and 1 deletions
|
@ -41,6 +41,18 @@ class Handler extends ExceptionHandler
|
|||
parent::report($exception);
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the exception handling callbacks for the application.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->reportable(function (\BadMethodCallException $e) {
|
||||
return app()->environment() !== 'production';
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Render an exception into an HTTP response.
|
||||
*
|
||||
|
|
|
@ -28,7 +28,7 @@ use App\Util\Media\License;
|
|||
|
||||
class StatusController extends Controller
|
||||
{
|
||||
public function show(Request $request, $username, int $id)
|
||||
public function show(Request $request, $username, $id)
|
||||
{
|
||||
$user = Profile::whereNull('domain')->whereUsername($username)->firstOrFail();
|
||||
|
||||
|
|
Loading…
Reference in a new issue