From: Michael Date: Mon, 15 Apr 2024 03:10:15 +0000 (+0000) Subject: Fix warning: Undefined array key "post-reason" X-Git-Url: https://reisub.nsupdate.info/git/?p=friendica.git%2F.git;a=commitdiff_plain;h=6e0118f3fecea93847b1ddc2fc293c5548809dab Fix warning: Undefined array key "post-reason" --- diff --git a/mod/item.php b/mod/item.php index 5d20cc04a6..c34c4ec017 100644 --- a/mod/item.php +++ b/mod/item.php @@ -279,6 +279,7 @@ function item_process(array $post, array $request, bool $preview, string $return $post['body'] = BBCode::removeSharedData(Item::setHashtags($post['body'])); $post['writable'] = true; $post['sensitive'] = false; + $post['post-reason'] = Item::PR_LOCAL; $o = DI::conversation()->render([$post], Conversation::MODE_SEARCH, false, true);