https://bugzilla.wikimedia.org/show_bug.cgi?id=55460
Web browser: --- Bug ID: 55460 Summary: No reliable way to detect when an API edit is disallowed by the abuse filter Product: MediaWiki extensions Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: AbuseFilter Assignee: wikibugs-l@lists.wikimedia.org Reporter: at.li...@live.com.au CC: agarr...@wikimedia.org, nischay...@gmail.com Classification: Unclassified Mobile Platform: --- I set up an abuse filter on testwiki that warns the user with the MediaWiki message "snorkel-abuse" and also disallows the action. When triggering this filter using the API (action=edit) I get this: <?xml version="1.0"?><api><edit code="snorkel-abuse" info="Hit AbuseFilter: TTO's test filter" warning="Don't create snorkel pages" result="Failure" /></api> The only way to test for AbuseFilter being hit appears to be to check whether the "info" parameter starts with the string "Hit AbuseFilter". This seems a bit hackish. The spam blacklist manages to do better than this, providing its own spamblacklist attribute on the <edit> element. AbuseFilter should be able to do better too. -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l