mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
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()
|
public function broadcastOn()
|
||||||
{
|
{
|
||||||
return new PrivateChannel('live.chat.' . $this->livestream->profile_id);
|
return new Channel('live.chat.' . $this->livestream->profile_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function broadcastAs()
|
public function broadcastAs()
|
||||||
|
|
|
@ -36,7 +36,7 @@ class DeleteChatComment implements ShouldBroadcast
|
||||||
*/
|
*/
|
||||||
public function broadcastOn()
|
public function broadcastOn()
|
||||||
{
|
{
|
||||||
return new PrivateChannel('live.chat.' . $this->livestream->profile_id);
|
return new Channel('live.chat.' . $this->livestream->profile_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function broadcastAs()
|
public function broadcastAs()
|
||||||
|
|
|
@ -36,7 +36,7 @@ class NewChatComment implements ShouldBroadcast
|
||||||
*/
|
*/
|
||||||
public function broadcastOn()
|
public function broadcastOn()
|
||||||
{
|
{
|
||||||
return new PrivateChannel('live.chat.' . $this->livestream->profile_id);
|
return new Channel('live.chat.' . $this->livestream->profile_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function broadcastAs()
|
public function broadcastAs()
|
||||||
|
|
|
@ -36,7 +36,7 @@ class PinChatMessage implements ShouldBroadcast
|
||||||
*/
|
*/
|
||||||
public function broadcastOn()
|
public function broadcastOn()
|
||||||
{
|
{
|
||||||
return new PrivateChannel('live.chat.' . $this->livestream->profile_id);
|
return new Channel('live.chat.' . $this->livestream->profile_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function broadcastAs()
|
public function broadcastAs()
|
||||||
|
|
|
@ -33,7 +33,7 @@ class StreamEnd implements ShouldBroadcast
|
||||||
*/
|
*/
|
||||||
public function broadcastOn()
|
public function broadcastOn()
|
||||||
{
|
{
|
||||||
return new PrivateChannel('live.chat.' . $this->id);
|
return new Channel('live.chat.' . $this->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function broadcastAs()
|
public function broadcastAs()
|
||||||
|
|
|
@ -33,7 +33,7 @@ class StreamStart implements ShouldBroadcast
|
||||||
*/
|
*/
|
||||||
public function broadcastOn()
|
public function broadcastOn()
|
||||||
{
|
{
|
||||||
return new PrivateChannel('live.chat.' . $this->id);
|
return new Channel('live.chat.' . $this->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function broadcastAs()
|
public function broadcastAs()
|
||||||
|
|
|
@ -36,7 +36,7 @@ class UnpinChatMessage implements ShouldBroadcast
|
||||||
*/
|
*/
|
||||||
public function broadcastOn()
|
public function broadcastOn()
|
||||||
{
|
{
|
||||||
return new PrivateChannel('live.chat.' . $this->livestream->profile_id);
|
return new Channel('live.chat.' . $this->livestream->profile_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function broadcastAs()
|
public function broadcastAs()
|
||||||
|
|
|
@ -268,7 +268,7 @@ class LiveStreamController extends Controller
|
||||||
$stream = LiveStream::whereProfileId($pid)->firstOrFail();
|
$stream = LiveStream::whereProfileId($pid)->firstOrFail();
|
||||||
|
|
||||||
$payload = $request->input('message');
|
$payload = $request->input('message');
|
||||||
broadcast(new DeleteChatComment($stream, $payload))->toOthers();
|
DeleteChatComment::dispatch($stream, $payload);
|
||||||
$payload = json_encode($payload, JSON_UNESCAPED_SLASHES);
|
$payload = json_encode($payload, JSON_UNESCAPED_SLASHES);
|
||||||
LiveStreamService::deleteComment($stream->profile_id, $payload);
|
LiveStreamService::deleteComment($stream->profile_id, $payload);
|
||||||
return;
|
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