add: markdown deletion

This commit is contained in:
h z
2025-06-27 12:06:28 +01:00
parent 62c33c47c6
commit 1f4ca52a10
2 changed files with 11 additions and 1 deletions

View File

@@ -59,6 +59,10 @@ class WebhookEventHandler(abc.ABC):
if webhook_setting is None and p["parent_id"] != 1:
return self.get_setting(session, p["parent_id"])
# Check if webhook_setting is still None (e.g., when parent_id == 1 or no parent found)
if webhook_setting is None:
return None
setting = webhook_setting.to_dict()
if not setting["enabled"] or setting["on_events"] & self.event_type == 0: