aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-03 05:46:56 -0700
committerfriendica <info@friendica.com>2012-11-03 05:46:56 -0700
commit358111c76b94cd430a0d31d0255571bf5b502242 (patch)
treed524536fde325e81a970be20be5a689e1c8ec417 /mod
parent8a983a82eccb68472ee9a39c5c0072dd879cddab (diff)
downloadvolse-hubzilla-358111c76b94cd430a0d31d0255571bf5b502242.tar.gz
volse-hubzilla-358111c76b94cd430a0d31d0255571bf5b502242.tar.bz2
volse-hubzilla-358111c76b94cd430a0d31d0255571bf5b502242.zip
fix post preview
Diffstat (limited to 'mod')
-rw-r--r--mod/item.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/item.php b/mod/item.php
index c845ca57e..3e0384aa2 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -138,7 +138,6 @@ function item_post(&$a) {
$observer = $a->get_observer();
if(! perm_is_allowed($profile_uid,$observer['xchan_hash'],(($parent) ? 'post_comments' : 'post_wall'))) {
- dbg(0);
notice( t('Permission denied.') . EOL) ;
if(x($_REQUEST,'return'))
goaway($a->get_baseurl() . "/" . $return_path );
@@ -539,8 +538,10 @@ function item_post(&$a) {
if($preview) {
require_once('include/conversation.php');
-// fixme
- $o = conversation($a,array(array_merge($contact_record,$datarray)),'search',false,'preview');
+
+ $datarray['owner'] = $owner_xchan;
+ $datarray['author'] = $observer;
+ $o = conversation($a,array($datarray),'search',false,'preview');
logger('preview: ' . $o, LOGGER_DEBUG);
echo json_encode(array('preview' => $o));
killme();