Merge pull request #13004 from annando/warning

Fixes warning: Undefined array key "pending"
This commit is contained in:
Hypolite Petovan
2023-04-15 19:21:46 -04:00
committed by GitHub

View File

@@ -128,7 +128,7 @@ class FormattedNavNotification extends BaseFactory
} }
if (!isset(self::$contacts[$notification->actorId])) { if (!isset(self::$contacts[$notification->actorId])) {
self::$contacts[$notification->actorId] = Contact::getById($notification->actorId, ['name', 'url']); self::$contacts[$notification->actorId] = Contact::getById($notification->actorId, ['name', 'url', 'pending']);
} }
return $this->createFromParams( return $this->createFromParams(