From: Guillaume Pellerin Date: Mon, 27 Mar 2023 11:59:40 +0000 (+0200) Subject: add TELECASTER_LIVE_TWEETER to control live tweeting X-Git-Tag: 2.9.0~70^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7a255e4a60d82968e281c76ad973a0a02bb40a38;p=teleforma.git add TELECASTER_LIVE_TWEETER to control live tweeting --- 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)