Don't allow thanking system users

Bug: T237356
Change-Id: I3d7968276a59a66ed4d1931b03310e571d070167
Depends-On: I73f25a10df2c28a69f612eb1db3e91b7125383d9
This commit is contained in:
DannyS712 2019-11-05 22:49:25 +00:00
parent b8e317d9fb
commit 9f495fcedb

View file

@ -99,7 +99,7 @@ class ThanksHooks {
protected static function canReceiveThanks( User $user ) {
global $wgThanksSendToBots;
if ( $user->isAnon() ) {
if ( $user->isAnon() || $user->isSystemUser() ) {
return false;
}