This commit is contained in:
redmatrix
2016-09-20 15:53:30 -07:00
parent 007836f514
commit 4511f8855b

View File

@@ -755,13 +755,8 @@ class Item extends \Zotlabs\Web\Controller {
$plink = z_root() . '/channel/' . $channel['channel_address'] . '/?f=&mid=' . $mid; $plink = z_root() . '/channel/' . $channel['channel_address'] . '/?f=&mid=' . $mid;
} }
$datarray['aid'] = $channel['channel_account_id']; $datarray['aid'] = $channel['channel_account_id'];
$datarray['uid'] = $profile_uid; $datarray['uid'] = $profile_uid;
$datarray['owner_xchan'] = (($owner_hash) ? $owner_hash : $owner_xchan['xchan_hash']); $datarray['owner_xchan'] = (($owner_hash) ? $owner_hash : $owner_xchan['xchan_hash']);
$datarray['author_xchan'] = $observer['xchan_hash']; $datarray['author_xchan'] = $observer['xchan_hash'];
$datarray['created'] = $created; $datarray['created'] = $created;
@@ -784,36 +779,34 @@ class Item extends \Zotlabs\Web\Controller {
$datarray['allow_gid'] = $str_group_allow; $datarray['allow_gid'] = $str_group_allow;
$datarray['deny_cid'] = $str_contact_deny; $datarray['deny_cid'] = $str_contact_deny;
$datarray['deny_gid'] = $str_group_deny; $datarray['deny_gid'] = $str_group_deny;
$datarray['item_private'] = $private;
$datarray['item_wall'] = $item_wall;
$datarray['attach'] = $attachments; $datarray['attach'] = $attachments;
$datarray['thr_parent'] = $thr_parent; $datarray['thr_parent'] = $thr_parent;
$datarray['postopts'] = $postopts; $datarray['postopts'] = $postopts;
$datarray['item_unseen'] = $item_unseen; $datarray['item_unseen'] = intval($item_unseen);
$datarray['item_wall'] = $item_wall; $datarray['item_wall'] = intval($item_wall);
$datarray['item_origin'] = $item_origin; $datarray['item_origin'] = intval($item_origin);
$datarray['item_type'] = $webpage; $datarray['item_type'] = $webpage;
$datarray['item_thread_top'] = $item_thread_top; $datarray['item_private'] = intval($private);
$datarray['item_unseen'] = $item_unseen; $datarray['item_thread_top'] = intval($item_thread_top);
$datarray['item_starred'] = $item_starred; $datarray['item_unseen'] = intval($item_unseen);
$datarray['item_uplink'] = $item_uplink; $datarray['item_starred'] = intval($item_starred);
$datarray['item_consensus'] = $item_consensus; $datarray['item_uplink'] = intval($item_uplink);
$datarray['item_notshown'] = $item_notshown; $datarray['item_consensus'] = intval($item_consensus);
$datarray['item_nsfw'] = $item_nsfw; $datarray['item_notshown'] = intval($item_notshown);
$datarray['item_relay'] = $item_relay; $datarray['item_nsfw'] = intval($item_nsfw);
$datarray['item_mentionsme'] = $item_mentionsme; $datarray['item_relay'] = intval($item_relay);
$datarray['item_nocomment'] = $item_nocomment; $datarray['item_mentionsme'] = intval($item_mentionsme);
$datarray['item_obscured'] = $item_obscured; $datarray['item_nocomment'] = intval($item_nocomment);
$datarray['item_verified'] = $item_verified; $datarray['item_obscured'] = intval($item_obscured);
$datarray['item_retained'] = $item_retained; $datarray['item_verified'] = intval($item_verified);
$datarray['item_rss'] = $item_rss; $datarray['item_retained'] = intval($item_retained);
$datarray['item_deleted'] = $item_deleted; $datarray['item_rss'] = intval($item_rss);
$datarray['item_hidden'] = $item_hidden; $datarray['item_deleted'] = intval($item_deleted);
$datarray['item_unpublished'] = $item_unpublished; $datarray['item_hidden'] = intval($item_hidden);
$datarray['item_delayed'] = $item_delayed; $datarray['item_unpublished'] = intval($item_unpublished);
$datarray['item_pending_remove'] = $item_pending_remove; $datarray['item_delayed'] = intval($item_delayed);
$datarray['item_blocked'] = $item_blocked; $datarray['item_pending_remove'] = intval($item_pending_remove);
$datarray['item_blocked'] = intval($item_blocked);
$datarray['layout_mid'] = $layout_mid; $datarray['layout_mid'] = $layout_mid;
$datarray['public_policy'] = $public_policy; $datarray['public_policy'] = $public_policy;
$datarray['comment_policy'] = map_scope($comment_policy); $datarray['comment_policy'] = map_scope($comment_policy);