diff options
author | friendica <info@friendica.com> | 2012-01-09 20:03:00 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-01-09 20:03:00 -0800 |
commit | 7011f71e8f3e6de89dae2d46d4dece0d02a78351 (patch) | |
tree | 7f4ce9f6fe93254e58eebdc631b062ec42176135 /mod | |
parent | 805eb35a1af7c760f317c7f96816a770a4388e29 (diff) | |
download | volse-hubzilla-7011f71e8f3e6de89dae2d46d4dece0d02a78351.tar.gz volse-hubzilla-7011f71e8f3e6de89dae2d46d4dece0d02a78351.tar.bz2 volse-hubzilla-7011f71e8f3e6de89dae2d46d4dece0d02a78351.zip |
post preview
Diffstat (limited to 'mod')
-rw-r--r-- | mod/item.php | 3 |
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(); } |