Abuse filter parameter changed which caused crashes

This commit is contained in:
Frisk 2018-11-14 23:24:55 +01:00
parent f4704ec30a
commit 2c43070ec3
No known key found for this signature in database
GPG key ID: 0E9A7D3C0A01586C

View file

@ -613,7 +613,7 @@ def first_pass(
old_groups=change["logparams"]["oldgroups"], new_groups=change["logparams"]["newgroups"])
elif combination == "abusefilter/modify":
webhook_formatter(combination, STATIC_VARS, user=change["user"], desc=parsedcomment,
filternr=change["logparams"]['1'])
filternr=change["logparams"]['newId'])
elif combination == "interwiki/iw_add":
webhook_formatter(combination, STATIC_VARS, user=change["user"], desc=parsedcomment,
prefix=change["logparams"]['0'], website=change["logparams"]['1'])