]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
Mode depending control for the behaviour with blocked contacts
[friendica.git] / mod / item.php
index c1740c274f8d4b7e9f819cb7502ba70fbd013967..13ffe756833b6c391e52784a8f7af6b075535cf5 100644 (file)
@@ -29,6 +29,7 @@
  */
 
 use Friendica\App;
+use Friendica\Content\Conversation;
 use Friendica\Content\Text\BBCode;
 use Friendica\Core\Hook;
 use Friendica\Core\Logger;
@@ -274,7 +275,7 @@ function item_process(array $post, array $request, bool $preview, string $return
                $post['body']           = BBCode::removeSharedData(Item::setHashtags($post['body']));
                $post['writable']       = true;
 
-               $o = DI::conversation()->create([$post], 'search', false, true);
+               $o = DI::conversation()->create([$post], Conversation::MODE_SEARCH, false, true);
 
                System::jsonExit(['preview' => $o]);
        }