mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-15 02:03:53 +00:00
4c06dd52c8
So that sysadmins can further customize the extension. It was also wrong to use the same variable for many different things. Note that there's no associated patch in wmf-config because we use the defaults. However, before merging this patch, please recheck that AbuseFilterRestrictions and AbuseFilterDisallowGlobalLocalBlocks aren't used there (https://codesearch.wmflabs.org/operations/?q=AbuseFilterDisallowGlobalLocalBlocks%7CAbuseFilterRestrictions&i=nope&files=&repos=) Bug: T175221 Change-Id: I7581b3ee6d9d11a6cf1599b8ff874e8c3d54adf4
16 lines
402 B
PHP
16 lines
402 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\AbuseFilter\Hooks;
|
|
|
|
interface AbuseFilterGetDangerousActionsHook {
|
|
/**
|
|
* Hook runner for the `AbuseFilterGetDangerousActions` hook
|
|
*
|
|
* Allows specifying custom consequences which can harm the user and prevent
|
|
* the edit from being saved.
|
|
*
|
|
* @param string[] &$actions
|
|
*/
|
|
public function onAbuseFilterGetDangerousActions( array &$actions ) : void;
|
|
}
|