SpecialLog: Don't ignore offender when it's a nonexistent username
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 17 Jan 2018 15:44:29 +0000 (10:44 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 17 Jan 2018 18:59:40 +0000 (13:59 -0500)
commit467ee1e82f1526ba4671f52936fd279eb5cda4f6
tree7453edda3d87bbee17dd1e438c60a3c890f1002a
parentabcd62f59c21fe5d720cb43a11f152bc622a4936
SpecialLog: Don't ignore offender when it's a nonexistent username

When viewing the suppression log, the 'offender' field is ignored if it
specifies a username that happens to not exist locally. It would make
more sense for it to filter by that name and return an empty list.

Ideally such searches would have the possibility of succeeding, since
imported log entries can be attributed to a nonexistent user, but the
necessary data isn't currently being stored. The actor table patch
(I8d825eb0) will start storing that data once migration begins, although
a maintenance script run would be needed to populate it for old log
entries.

Change-Id: I73ac78f7623178ab878135b910a22013723885d3
includes/specials/SpecialLog.php