From b6d62003a6db3d6d67349dca3e3c44f479dbb8f2 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 26 Nov 2022 17:27:36 -0500 Subject: [PATCH] Have a default value for $item['contact-id'] in Model\Post\Delayed - Address https://github.com/friendica/friendica/issues/11993#issuecomment-1327030873 --- src/Model/Post/Delayed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Post/Delayed.php b/src/Model/Post/Delayed.php index ac5a9c20b..6e92465fa 100644 --- a/src/Model/Post/Delayed.php +++ b/src/Model/Post/Delayed.php @@ -195,7 +195,7 @@ class Delayed $id = Item::insert($item, $notify, $preparation_mode == self::PREPARED); - Logger::notice('Post stored', ['id' => $id, 'uid' => $item['uid'], 'cid' => $item['contact-id']]); + Logger::notice('Post stored', ['id' => $id, 'uid' => $item['uid'], 'cid' => $item['contact-id'] ?? 'N/A']); if (empty($uri) && !empty($item['uri'])) { $uri = $item['uri'];