X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=app%2FHttp%2FControllers%2FChannelController.php;fp=app%2FHttp%2FControllers%2FChannelController.php;h=f6840f87f837f27e94dc36d4dad096d8d4a4ba17;hb=4b0f87a8b0683579c53c68f35b18e5d08c30b3b9;hp=904cb8ff81ebc0833fc7912aeae96a10edae2ef5;hpb=e10222af705e3475fcea6e0b17d1c9984a62db26;p=alttp.git diff --git a/app/Http/Controllers/ChannelController.php b/app/Http/Controllers/ChannelController.php index 904cb8f..f6840f8 100644 --- a/app/Http/Controllers/ChannelController.php +++ b/app/Http/Controllers/ChannelController.php @@ -49,7 +49,7 @@ class ChannelController extends Controller { $this->authorize('editRestream', $channel); $channel->join = true; $channel->save(); - TwitchBotCommand::join($channel->twitch_chat); + TwitchBotCommand::join($channel->twitch_chat, $request->user()); return $channel->toJson(); } @@ -60,7 +60,7 @@ class ChannelController extends Controller { $this->authorize('editRestream', $channel); $channel->join = false; $channel->save(); - TwitchBotCommand::part($channel->twitch_chat); + TwitchBotCommand::part($channel->twitch_chat, $request->user()); return $channel->toJson(); }