Merge branch 'cherry-pick-2c43070e' into 'master'

Abuse filter parameter changed which caused crashes

See merge request piotrex43/RcGcDw!27
This commit is contained in:
Frisk 2018-11-14 22:28:39 +00:00
commit 749ed6a461

View file

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