Interface: ApiAbuseFilter
Defined in: extensions/abusefilters.ts:33
One abuse filter definition.
Properties
actions?
optionalactions?:string|string[]
Defined in: extensions/abusefilters.ts:49
The actions the filter performs. abfprop=actions.
- Up to MediaWiki 1.46: the raw
af_actionscolumn, a comma-joined string such as"disallow,tag". - 1.47 onward: the same value split into a
string[].
comments?
optionalcomments?:string
Defined in: extensions/abusefilters.ts:52
The filter's comments. abfprop=comments (withheld for private/protected filters).
commentsredacted?
optionalcommentsredacted?:true
Defined in: extensions/abusefilters.ts:79
true when comments was withheld from this viewer. A Flag.
Before 1.47, a withheld comments was simply omitted.
Since
MediaWiki 1.47
deleted?
optionaldeleted?:boolean|""
Defined in: extensions/abusefilters.ts:95
Whether the filter is soft-deleted. abfprop=status; same "" (1.43) vs real boolean (newer abfprop=flags) behaviour as enabled.
description?
optionaldescription?:string
Defined in: extensions/abusefilters.ts:38
Human-readable filter description. abfprop=description.
enabled?
optionalenabled?:boolean|""
Defined in: extensions/abusefilters.ts:92
Whether the filter is enabled. abfprop=status.
- 1.43: present as an empty string when the flag applies, and absent otherwise.
- Newer builds (
abfprop=flags): real booleans.
hits?
optionalhits?:number
Defined in: extensions/abusefilters.ts:55
Number of matches (only when the viewer may see it). abfprop=hits.
hitsredacted?
optionalhitsredacted?:true
Defined in: extensions/abusefilters.ts:63
true when hits was withheld from this viewer. A Flag. Before
1.47, a withheld hits was simply omitted.
Since
MediaWiki 1.47
id?
optionalid?:number
Defined in: extensions/abusefilters.ts:35
Filter id.
lasteditor?
optionallasteditor?:string
Defined in: extensions/abusefilters.ts:82
Last editor of the filter. abfprop=lasteditor.
lastedittime?
optionallastedittime?:string
Defined in: extensions/abusefilters.ts:85
Last edit timestamp. abfprop=lastedittime.
pattern?
optionalpattern?:string
Defined in: extensions/abusefilters.ts:41
The filter's regex/rule string. abfprop=pattern (withheld for private/protected filters).
patternredacted?
optionalpatternredacted?:true
Defined in: extensions/abusefilters.ts:71
true when pattern was withheld from this viewer. A Flag.
Before 1.47, a withheld pattern was simply omitted.
Since
MediaWiki 1.47
private?
optionalprivate?:boolean|""
Defined in: extensions/abusefilters.ts:98
Whether the filter is private (hidden from the viewer). abfprop=private; same "" (1.43) vs real boolean (newer abfprop=flags) behaviour as enabled.
protected?
optionalprotected?:boolean|""
Defined in: extensions/abusefilters.ts:106
Whether the filter's protected variables are hidden. Same "" (1.43) vs
real boolean (newer abfprop=flags) behaviour as enabled.
Since
MediaWiki 1.43
suppressed?
optionalsuppressed?:boolean
Defined in: extensions/abusefilters.ts:115
Whether the filter is suppressed (oversight). A real boolean under
abfprop=flags; the per-flag abfprop=suppressed alias is itself
deprecated since 1.47.
Since
MediaWiki 1.47