]> git.parisson.com Git - teleforma.git/commitdiff
add TELECASTER_LIVE_TWEETER to control live tweeting
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 27 Mar 2023 11:59:40 +0000 (13:59 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 27 Mar 2023 12:00:04 +0000 (14:00 +0200)
app/settings.py
teleforma/views/core.py

index c473cc66b388ab6c8f2670c7280cc79a4d4b7be0..a76b2731dbda4903c1e4cb0203cf84f36c7ece68 100644 (file)
@@ -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',
index 0bd1d288817277ea967f6b62ff300f410c854bd2..b9e1b52a74be8d628d2667935059838130a29dd3 100644 (file)
@@ -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)