Changes before error encountered

Co-authored-by: dawnsystem <42047891+dawnsystem@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-11-12 15:42:23 +00:00
parent 780decf543
commit cd5c7afdcd
5 changed files with 815 additions and 2 deletions

View file

@ -76,8 +76,17 @@ class AIDeletionManager:
f"requiring approval from user {user.username}"
)
# TODO: Send notification to user about pending deletion request
# This could be via email, in-app notification, or both
# Send webhook notification about deletion request
try:
from documents.webhooks import send_deletion_request_webhook
send_deletion_request_webhook(request)
except Exception as webhook_error:
logger.warning(
f"Failed to send deletion request webhook: {webhook_error}",
exc_info=True,
)
# TODO: Send in-app notification to user about pending deletion request
return request