]> git.parisson.com Git - teleforma.git/commitdiff
remove live tweeter notif, make live notif async
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Thu, 5 Feb 2026 14:32:43 +0000 (15:32 +0100)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Thu, 5 Feb 2026 14:32:43 +0000 (15:32 +0100)
teleforma/views/core.py

index 6366c71f744f79b641f927a669dc289c03e367be..8679ea27d965f812a7b27fb34bca3edc0032d41d 100644 (file)
@@ -934,12 +934,6 @@ class ConferenceView(CourseAccessMixin, DetailView):
                                             stream_type=stream_type, streaming=True)
                         stream.save()
 
-                    if not conference.web_class_group and settings.TELECASTER_LIVE_TWEETER:
-                        try:
-                            site = get_current_site(request)
-                            live_message(site, conference)
-                        except:
-                            pass
         else:
             raise 'Error : input must be a conference dictionnary'
 
@@ -1031,7 +1025,7 @@ class NotificationView(APIView):
 
 class LiveConferenceNotify(APIView):
 
-    def post(self, request):
+    async def post(self, request):
         """
         notify users a new live conference is starting
         """