1
0
Fork 0

Merge pull request #3112 from pixelfed/staging

Staging
This commit is contained in:
daniel 2021-12-31 00:58:44 -07:00 committed by GitHub
commit 4e27fee344
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -41,6 +41,18 @@ class Handler extends ExceptionHandler
parent::report($exception); 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. * Render an exception into an HTTP response.
* *

View File

@ -28,7 +28,7 @@ use App\Util\Media\License;
class StatusController extends Controller 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(); $user = Profile::whereNull('domain')->whereUsername($username)->firstOrFail();