Fix warning: Undefined array key "post-reason"

This commit is contained in:
Michael 2024-04-15 03:10:15 +00:00
parent 49a0b0fc3c
commit 6e0118f3fe
1 changed files with 1 additions and 0 deletions

View 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);