Fix crash in activity panel when entry user is unknown

This commit is contained in:
Molkobain
2021-11-15 16:22:33 +01:00
parent fe9a442500
commit 62d8a2ba1f

View File

@@ -275,9 +275,9 @@ class ActivityEntry extends UIBlock
/**
* Return true if the current user is the author of the activity entry
*
* @return bool
* @return bool|null Can be null depending on the source of creation of the entry
*/
public function IsFromCurrentUser(): bool
public function IsFromCurrentUser(): ?bool
{
return $this->bIsFromCurrentUser;
}