Merge branch 'abuselog_webhookURL' into 'testing'

Add `abuselog_webhookURL`

See merge request piotrex43/RcGcDw!106
This commit is contained in:
MarkusRost 2022-09-19 12:26:34 +00:00
commit 5e74c15eaa

View file

@ -279,7 +279,7 @@ def abuselog_processing(entry):
action = "abuselog"
if action in settings["ignored"]:
return
context = Context(settings["appearance"]["mode"], "abuselog", settings["webhookURL"], client, formatters_i18n, settings)
context = Context(settings["appearance"]["mode"], "abuselog", settings.get("abuselog_webhookURL", settings["webhookURL"]), client, formatters_i18n, settings)
context.event = action
run_hooks(pre_hooks, context, entry)
try: