allow editing posts on connectors that support edits

This commit is contained in:
friendica 2013-11-26 15:50:30 -08:00
parent dde3e28ceb
commit 7aa7f0f4eb

View File

@ -273,6 +273,7 @@ function item_post(&$a) {
$private = $orig_post['item_private']; $private = $orig_post['item_private'];
$item_flags = $orig_post['item_flags']; $item_flags = $orig_post['item_flags'];
$item_restrict = $orig_post['item_restrict']; $item_restrict = $orig_post['item_restrict'];
$postopts = $orig_post['postopts'];
} }
else { else {
@ -305,6 +306,7 @@ function item_post(&$a) {
$verb = notags(trim($_REQUEST['verb'])); $verb = notags(trim($_REQUEST['verb']));
$title = escape_tags(trim($_REQUEST['title'])); $title = escape_tags(trim($_REQUEST['title']));
$body = $_REQUEST['body']; $body = $_REQUEST['body'];
$postopts = '';
$private = ( $private = (
( strlen($str_group_allow) ( strlen($str_group_allow)
@ -622,7 +624,7 @@ function item_post(&$a) {
$datarray['item_private'] = $private; $datarray['item_private'] = $private;
$datarray['attach'] = $attachments; $datarray['attach'] = $attachments;
$datarray['thr_parent'] = $thr_parent; $datarray['thr_parent'] = $thr_parent;
$datarray['postopts'] = ''; $datarray['postopts'] = $postopts;
$datarray['item_restrict'] = $item_restrict; $datarray['item_restrict'] = $item_restrict;
$datarray['item_flags'] = $item_flags; $datarray['item_flags'] = $item_flags;
$datarray['layout_mid'] = $layout_mid; $datarray['layout_mid'] = $layout_mid;