From 1c295dde291b4391b3a21b2d71cc7e93305fc305 Mon Sep 17 00:00:00 2001 From: Lili Date: Mon, 7 Nov 2022 12:56:11 +0100 Subject: [PATCH] fix duplicate removal on name change for auth user --- tlapbot/owncast_webhooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tlapbot/owncast_webhooks.py b/tlapbot/owncast_webhooks.py index 45d1bc2..64f8cd2 100644 --- a/tlapbot/owncast_webhooks.py +++ b/tlapbot/owncast_webhooks.py @@ -24,7 +24,7 @@ def owncast_webhook(): new_name = data["eventData"]["newName"] change_display_name(db, user_id, new_name) if data["eventData"]["user"]["authenticated"]: - remove_duplicate_usernames(db, user_id, display_name) + remove_duplicate_usernames(db, user_id, new_name) elif data["type"] == "CHAT": user_id = data["eventData"]["user"]["id"] display_name = data["eventData"]["user"]["displayName"]