diff --git a/extensions/pusher/src/Api/Controller/AuthController.php b/extensions/pusher/src/Api/Controller/AuthController.php index 0ce7bcf66..8fac2c880 100644 --- a/extensions/pusher/src/Api/Controller/AuthController.php +++ b/extensions/pusher/src/Api/Controller/AuthController.php @@ -9,6 +9,7 @@ namespace Flarum\Pusher\Api\Controller; +use Flarum\Http\RequestUtil; use Flarum\Settings\SettingsRepositoryInterface; use Illuminate\Support\Arr; use Laminas\Diactoros\Response\EmptyResponse; @@ -39,7 +40,7 @@ class AuthController implements RequestHandlerInterface */ public function handle(ServerRequestInterface $request): ResponseInterface { - $userChannel = 'private-user'.$request->getAttribute('actor')->id; + $userChannel = 'private-user'.RequestUtil::getActor($request)->id; $body = $request->getParsedBody(); if (Arr::get($body, 'channel_name') === $userChannel) {