Kunal Mehta
1392aa05d6
Only add 'sysop' group to filter user if not in it
...
This should avoid repeated, unnecessary calls to User::addGroup().
Bug: T163032
Change-Id: I010e6eb45c4fbf984a3b5e5df2671117ca4e0136
2017-04-17 10:34:47 -07:00
Timo Tijhof
f95e5dd086
Update getStashKey() to use $cache parameter
...
Follows-up e4ac1ef
. A lot of this class gets its own cache object
in key-generation methods because of legacy compat with public
methods and because of how wfMemcKey used to be.
However where possible, we should encourage passing $cache
so that makeKey() can be used on the same instance that uses
the key.
This is a no-op since it's exactly the same object.
Change-Id: Ib3c31110176659a9175679eb716369e7f0a1d3b2
2017-03-09 14:08:04 -08:00
Matěj Suchánek
e4ac1efb7a
Remove unused argument from a private method
...
Change-Id: I2f34bb04a90c2535fbeb0e515714aa4a71779f50
2017-03-02 16:34:23 +00:00
Huji Lee
630ef7f2ce
Don't use wfDiff() in AbuseFilter
...
Bug: T158850
Change-Id: Ib5bd4eacc3dd26dc2abdf4eedce66ed228b326d8
2017-02-28 00:29:33 +00:00
Matěj Suchánek
de1c2af0e1
Unify global filters decoding across AbuseFilter
...
Change-Id: I3c97c24b5d0e4818b36e233a8bb3b205cbb2c7d0
2017-01-02 12:14:02 +00:00
Matěj Suchánek
9379a0c767
Add GENDER to the message logentry-abusefilter-hit
...
As far as I can see, this parameter is already supported.
Bug: T153607
Change-Id: If3eed341ef2f2e7bbad103c2738a7eae59886faa
2016-12-26 09:32:31 +00:00
Aaron Schulz
2d57141600
Move AbuseFilterVariableHolder up to /includes
...
This class is not for parsing logic or tree nodes
Change-Id: I07a499cc972c30fc249ec4de3250900a3b703443
2016-12-18 17:13:06 -08:00
Aaron Schulz
9b1021b055
Move various classes to their own files
...
Change-Id: I5d418b3fa27aa6e04b9a680922e5eab2439ffb20
2016-12-17 11:40:10 -08:00