Fix warning: Undefined array key "post-reason"
authorMichael <heluecht@pirati.ca>
Mon, 15 Apr 2024 03:10:15 +0000 (03:10 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 15 Apr 2024 03:10:15 +0000 (03:10 +0000)
mod/item.php

index 5d20cc0..c34c4ec 100644 (file)
@@ -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);