comment preview

This commit is contained in:
friendica 2012-01-05 16:38:24 -08:00
commit b99cb511ca
5 changed files with 31 additions and 3 deletions

View file

@ -588,7 +588,7 @@ function item_post(&$a) {
if($preview) {
$b = prepare_body($datarray,true);
require_once('include/conversation.php');
$o = conversation(&$a,array(array_merge($datarray,$contact_record)),'search',false);
$o = conversation(&$a,array(array_merge($contact_record,$datarray)),'search',false,true);
$json = array('preview' => $o);
echo json_encode($json);
killme();

View file

@ -1203,6 +1203,7 @@ function photos_content(&$a) {
'$myphoto' => $contact['thumb'],
'$comment' => t('Comment'),
'$submit' => t('Submit'),
'$preview' => t('Preview'),
'$ww' => ''
));
}