From 3f8da997f476dc63bdc2b3af6c210461341c3dec Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 17 May 2022 03:40:38 +0000 Subject: [PATCH] Fix: Preview failed because of unknown variables --- mod/item.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mod/item.php b/mod/item.php index 71c1568f6..adfdc4cb0 100644 --- a/mod/item.php +++ b/mod/item.php @@ -623,7 +623,9 @@ function item_post(App $a) { $datarray["author-network"] = Protocol::DFRN; $datarray["author-updated"] = ''; $datarray["author-gsid"] = 0; + $datarray["author-uri-id"] = ItemURI::getIdByURI($datarray["author-link"]); $datarray["owner-updated"] = ''; + $datarray["has-media"] = false; $o = DI::conversation()->create([array_merge($contact_record, $datarray)], 'search', false, true);