Fixes warning: Undefined array key "pending"

This commit is contained in:
Michael 2023-04-15 23:08:42 +00:00
parent 67792bbc0b
commit b8dd6c0b25

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(