kopia lustrzana https://github.com/pixelfed/pixelfed
Update livestream events
rodzic
aa57e1e593
commit
4bd9e12f00
|
@ -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;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -19,7 +19,7 @@
|
||||||
"/js/admin.js": "/js/admin.js?id=fd88b96423314b41cc763a0714554a04",
|
"/js/admin.js": "/js/admin.js?id=fd88b96423314b41cc763a0714554a04",
|
||||||
"/js/rempro.js": "/js/rempro.js?id=03810f85fc35fb2238c518a076fe6b34",
|
"/js/rempro.js": "/js/rempro.js?id=03810f85fc35fb2238c518a076fe6b34",
|
||||||
"/js/rempos.js": "/js/rempos.js?id=390eecb73b0e650f058df325985db938",
|
"/js/rempos.js": "/js/rempos.js?id=390eecb73b0e650f058df325985db938",
|
||||||
"/js/live-player.js": "/js/live-player.js?id=bd4d4400dd681c4a484aa021c6048342",
|
"/js/live-player.js": "/js/live-player.js?id=dd54a729ca39d7eebff1bdb6ef53e236",
|
||||||
"/js/spa.js": "/js/spa.js?id=c6c3766979c5b2c2aa6d872cf5ae8bda",
|
"/js/spa.js": "/js/spa.js?id=c6c3766979c5b2c2aa6d872cf5ae8bda",
|
||||||
"/js/stories.js": "/js/stories.js?id=814a25875cac8987d85c801dcb453114",
|
"/js/stories.js": "/js/stories.js?id=814a25875cac8987d85c801dcb453114",
|
||||||
"/js/installer.js": "/js/installer.js?id=d7b03f6c0bb707bec8ff9f81d328ac4a",
|
"/js/installer.js": "/js/installer.js?id=d7b03f6c0bb707bec8ff9f81d328ac4a",
|
||||||
|
|
Ładowanie…
Reference in New Issue