On Wed, Dec 5, 2012 at 1:11 PM, Matthew Flaschen
It makes sense for AbuseFilter and Wikidata to work in
it seems Wikidata should provide a hook that AbuseFilter calls.
I think we agree on this point, although I'll clarify and say I think
AbuseFilter should be calling wfRunHooks, and Wikibase should provide
the functions. I think more 3rd-party wikis will run AbuseFilter than
Wikibase, but that could be my prejudice based on what I work on.
What if someone wants to make spam filter that works
AbuseFilter? For example, it uses its own programmatic rules rather
than ones that can be expressed in the Special:AbuseFilter language.
You are correct, AbuseFilter doesn't currently have hooks to let an
extension run its own logic, but that wouldn't be too difficult to
implement. Maybe run a new hook from AbuseFilter::checkConditions?
Although I would be interested to know what kind of rules you have in
mind, since it's certainly possible that we would want to implement it
as a AbuseFilter operation.