From 7a255e4a60d82968e281c76ad973a0a02bb40a38 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 27 Mar 2023 13:59:40 +0200 Subject: [PATCH] add TELECASTER_LIVE_TWEETER to control live tweeting --- app/settings.py | 1 + teleforma/views/core.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/settings.py b/app/settings.py index c473cc66..a76b2731 100644 --- a/app/settings.py +++ b/app/settings.py @@ -280,6 +280,7 @@ TELECASTER_LIVE_ICECAST_STREAMING_PORT = 443 TELECASTER_LIVE_ICECAST_STREAMING_PATH = '/stream/audio/' TELECASTER_LIVE_STREAM_M_STREAMING_PORT = 443 TELECASTER_LIVE_STREAM_M_STREAMING_PATH = '/stream/video/' +TELECASTER_LIVE_TWEETER = False PASSWORD_HASHERS = [ 'django.contrib.auth.hashers.PBKDF2PasswordHasher', diff --git a/teleforma/views/core.py b/teleforma/views/core.py index 0bd1d288..b9e1b52a 100644 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@ -879,7 +879,7 @@ class ConferenceView(CourseAccessMixin, DetailView): stream_type=stream_type, streaming=True) stream.save() - if not conference.web_class_group: + if not conference.web_class_group and settings.TELECASTER_LIVE_TWEETER: try: site = get_current_site(request) live_message(site, conference) -- 2.39.5