make polls not work when they're disabled
This commit is contained in:
parent
924c4c547f
commit
a52db9f6ae
@ -59,6 +59,7 @@ def owncast_webhook() -> Any | None:
|
||||
if data["eventData"]["user"]["authenticated"]:
|
||||
remove_duplicate_usernames(db, user_id, display_name)
|
||||
elif data["eventData"]["rawBody"].startswith(f"{prefix}vote"):
|
||||
if current_app.config['POLLS_ENABLED']:
|
||||
handle_poll_vote(data["eventData"]["rawBody"], user_id)
|
||||
elif data["eventData"]["rawBody"].startswith(prefix):
|
||||
handle_redeem(data["eventData"]["rawBody"], user_id)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user