forked from mirror/pixelfed
Update LiveStreamController, clear chat cache when deleting stream
This commit is contained in:
parent
f51ffa7eab
commit
f8e585c49a
|
@ -144,6 +144,7 @@ class LiveStreamController extends Controller
|
||||||
->get()
|
->get()
|
||||||
->each(function($stream) {
|
->each(function($stream) {
|
||||||
Storage::deleteDirectory("public/live-hls/{$stream->stream_id}");
|
Storage::deleteDirectory("public/live-hls/{$stream->stream_id}");
|
||||||
|
LiveStreamService::clearChat($stream->profile_id);
|
||||||
$stream->delete();
|
$stream->delete();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue