mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-09-24 02:39:33 +00:00
Merge "Handle null user when trying to generate a link for notifications"
This commit is contained in:
commit
656d6c401c
|
@ -381,10 +381,14 @@ abstract class EchoEventPresentationModel implements JsonSerializable {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param User $user
|
||||
* @param User|null $user
|
||||
* @return array|null
|
||||
*/
|
||||
final protected function getUserLink( User $user ) {
|
||||
final protected function getUserLink( $user ) {
|
||||
if ( !$user ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if ( !$this->userCan( Revision::DELETED_USER ) ) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue