Merge pull request #13258 from choket/dev

Fix: Fixed a bug that caused user notification webhooks to never be sent
This commit is contained in:
Tim Jaeryang Baek
2025-04-28 06:14:24 -07:00
committed by GitHub

View File

@@ -1133,7 +1133,7 @@ async def process_chat_response(
)
# Send a webhook notification if the user is not active
if get_active_status_by_user_id(user.id) is None:
if get_active_status_by_user_id(user.id):
webhook_url = Users.get_user_webhook_url_by_id(user.id)
if webhook_url:
post_webhook(
@@ -2224,7 +2224,7 @@ async def process_chat_response(
)
# Send a webhook notification if the user is not active
if get_active_status_by_user_id(user.id) is None:
if get_active_status_by_user_id(user.id):
webhook_url = Users.get_user_webhook_url_by_id(user.id)
if webhook_url:
post_webhook(