Ver Fonte

Removed testing comment from newFollow hook

deadtom há 2 semanas atrás
pai
commit
c782b055c5
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      ownchatbot/webhooks.py

+ 2 - 1
ownchatbot/webhooks.py

@@ -160,9 +160,10 @@ def votes():
                            votes=all_active_votes(db))
 
 
-@ocb.route('/newFollow', methods=['POST'])  # NOT TESTED. Will be fully implimented in Owncast version 0.2.4.
+@ocb.route('/newFollow', methods=['POST'])
 def new_follow():
     data = request.json
+    current_app.logger.info(f'\n\n{format(data)}\n\n')
     db = get_db()
     user_id = data['eventData']['id']
     display_name = data['eventData']['name']