aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-09 20:03:00 -0800
committerfriendica <info@friendica.com>2012-01-09 20:03:00 -0800
commit7011f71e8f3e6de89dae2d46d4dece0d02a78351 (patch)
tree7f4ce9f6fe93254e58eebdc631b062ec42176135 /mod/item.php
parent805eb35a1af7c760f317c7f96816a770a4388e29 (diff)
downloadvolse-hubzilla-7011f71e8f3e6de89dae2d46d4dece0d02a78351.tar.gz
volse-hubzilla-7011f71e8f3e6de89dae2d46d4dece0d02a78351.tar.bz2
volse-hubzilla-7011f71e8f3e6de89dae2d46d4dece0d02a78351.zip
post preview
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/item.php b/mod/item.php
index a5fb81263..93becdee4 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -201,6 +201,8 @@ function item_post(&$a) {
if(! strlen($body)) {
+ if($preview)
+ killme();
info( t('Empty post discarded.') . EOL );
if(x($_POST,'return'))
goaway($a->get_baseurl() . "/" . $return_path );
@@ -590,6 +592,7 @@ function item_post(&$a) {
if($preview) {
require_once('include/conversation.php');
$o = conversation(&$a,array(array_merge($contact_record,$datarray)),'search',false,true);
+ logger('preview: ' . $o);
echo json_encode(array('preview' => $o));
killme();
}