forked from mirror/pixelfed
Update livestream events
This commit is contained in:
parent
aa57e1e593
commit
4bd9e12f00
10 changed files with 8 additions and 8 deletions
|
@ -36,7 +36,7 @@ class BanUser implements ShouldBroadcast
|
|||
*/
|
||||
public function broadcastOn()
|
||||
{
|
||||
return new PrivateChannel('live.chat.' . $this->livestream->profile_id);
|
||||
return new Channel('live.chat.' . $this->livestream->profile_id);
|
||||
}
|
||||
|
||||
public function broadcastAs()
|
||||
|
|
|
@ -36,7 +36,7 @@ class DeleteChatComment implements ShouldBroadcast
|
|||
*/
|
||||
public function broadcastOn()
|
||||
{
|
||||
return new PrivateChannel('live.chat.' . $this->livestream->profile_id);
|
||||
return new Channel('live.chat.' . $this->livestream->profile_id);
|
||||
}
|
||||
|
||||
public function broadcastAs()
|
||||
|
|
|
@ -36,7 +36,7 @@ class NewChatComment implements ShouldBroadcast
|
|||
*/
|
||||
public function broadcastOn()
|
||||
{
|
||||
return new PrivateChannel('live.chat.' . $this->livestream->profile_id);
|
||||
return new Channel('live.chat.' . $this->livestream->profile_id);
|
||||
}
|
||||
|
||||
public function broadcastAs()
|
||||
|
|
|
@ -36,7 +36,7 @@ class PinChatMessage implements ShouldBroadcast
|
|||
*/
|
||||
public function broadcastOn()
|
||||
{
|
||||
return new PrivateChannel('live.chat.' . $this->livestream->profile_id);
|
||||
return new Channel('live.chat.' . $this->livestream->profile_id);
|
||||
}
|
||||
|
||||
public function broadcastAs()
|
||||
|
|
|
@ -33,7 +33,7 @@ class StreamEnd implements ShouldBroadcast
|
|||
*/
|
||||
public function broadcastOn()
|
||||
{
|
||||
return new PrivateChannel('live.chat.' . $this->id);
|
||||
return new Channel('live.chat.' . $this->id);
|
||||
}
|
||||
|
||||
public function broadcastAs()
|
||||
|
|
|
@ -33,7 +33,7 @@ class StreamStart implements ShouldBroadcast
|
|||
*/
|
||||
public function broadcastOn()
|
||||
{
|
||||
return new PrivateChannel('live.chat.' . $this->id);
|
||||
return new Channel('live.chat.' . $this->id);
|
||||
}
|
||||
|
||||
public function broadcastAs()
|
||||
|
|
|
@ -36,7 +36,7 @@ class UnpinChatMessage implements ShouldBroadcast
|
|||
*/
|
||||
public function broadcastOn()
|
||||
{
|
||||
return new PrivateChannel('live.chat.' . $this->livestream->profile_id);
|
||||
return new Channel('live.chat.' . $this->livestream->profile_id);
|
||||
}
|
||||
|
||||
public function broadcastAs()
|
||||
|
|
|
@ -268,7 +268,7 @@ class LiveStreamController extends Controller
|
|||
$stream = LiveStream::whereProfileId($pid)->firstOrFail();
|
||||
|
||||
$payload = $request->input('message');
|
||||
broadcast(new DeleteChatComment($stream, $payload))->toOthers();
|
||||
DeleteChatComment::dispatch($stream, $payload);
|
||||
$payload = json_encode($payload, JSON_UNESCAPED_SLASHES);
|
||||
LiveStreamService::deleteComment($stream->profile_id, $payload);
|
||||
return;
|
||||
|
|
BIN
public/js/live-player.js
vendored
BIN
public/js/live-player.js
vendored
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue