Hide "User:" prefix from autopromote log entries

Bug: T247173
Change-Id: I40aa888bc45d8274d03eb7ead7bedaf1d087fb1c
This commit is contained in:
Matěj Suchánek 2020-09-16 11:21:14 +02:00
parent f3f40572eb
commit cba29fe85b

View file

@ -28,4 +28,15 @@ class AbuseFilterRightsLogFormatter extends LogFormatter {
}
return $ret;
}
/**
* @inheritDoc
*/
protected function getMessageParameters() {
$params = parent::getMessageParameters();
// remove "User:" prefix
$params[2] = $this->formatParameterValue( 'user-link', $this->entry->getTarget()->getText() );
return $params;
}
}