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

View File

@@ -755,71 +755,64 @@ 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['uid'] = $profile_uid;
$datarray['owner_xchan'] = (($owner_hash) ? $owner_hash : $owner_xchan['xchan_hash']);
$datarray['author_xchan'] = $observer['xchan_hash'];
$datarray['aid'] = $channel['channel_account_id']; $datarray['created'] = $created;
$datarray['uid'] = $profile_uid; $datarray['edited'] = (($orig_post) ? datetime_convert() : $created);
$datarray['expires'] = $expires;
$datarray['owner_xchan'] = (($owner_hash) ? $owner_hash : $owner_xchan['xchan_hash']); $datarray['commented'] = (($orig_post) ? datetime_convert() : $created);
$datarray['author_xchan'] = $observer['xchan_hash']; $datarray['received'] = (($orig_post) ? datetime_convert() : $created);
$datarray['created'] = $created; $datarray['changed'] = (($orig_post) ? datetime_convert() : $created);
$datarray['edited'] = (($orig_post) ? datetime_convert() : $created); $datarray['mid'] = $mid;
$datarray['expires'] = $expires; $datarray['parent_mid'] = $parent_mid;
$datarray['commented'] = (($orig_post) ? datetime_convert() : $created); $datarray['mimetype'] = $mimetype;
$datarray['received'] = (($orig_post) ? datetime_convert() : $created); $datarray['title'] = $title;
$datarray['changed'] = (($orig_post) ? datetime_convert() : $created); $datarray['body'] = $body;
$datarray['mid'] = $mid; $datarray['app'] = $app;
$datarray['parent_mid'] = $parent_mid; $datarray['location'] = $location;
$datarray['mimetype'] = $mimetype; $datarray['coord'] = $coord;
$datarray['title'] = $title; $datarray['verb'] = $verb;
$datarray['body'] = $body; $datarray['obj_type'] = $obj_type;
$datarray['app'] = $app; $datarray['allow_cid'] = $str_contact_allow;
$datarray['location'] = $location; $datarray['allow_gid'] = $str_group_allow;
$datarray['coord'] = $coord; $datarray['deny_cid'] = $str_contact_deny;
$datarray['verb'] = $verb; $datarray['deny_gid'] = $str_group_deny;
$datarray['obj_type'] = $obj_type; $datarray['attach'] = $attachments;
$datarray['allow_cid'] = $str_contact_allow; $datarray['thr_parent'] = $thr_parent;
$datarray['allow_gid'] = $str_group_allow; $datarray['postopts'] = $postopts;
$datarray['deny_cid'] = $str_contact_deny; $datarray['item_unseen'] = intval($item_unseen);
$datarray['deny_gid'] = $str_group_deny; $datarray['item_wall'] = intval($item_wall);
$datarray['item_private'] = $private; $datarray['item_origin'] = intval($item_origin);
$datarray['item_wall'] = $item_wall; $datarray['item_type'] = $webpage;
$datarray['attach'] = $attachments; $datarray['item_private'] = intval($private);
$datarray['thr_parent'] = $thr_parent; $datarray['item_thread_top'] = intval($item_thread_top);
$datarray['postopts'] = $postopts; $datarray['item_unseen'] = intval($item_unseen);
$datarray['item_unseen'] = $item_unseen; $datarray['item_starred'] = intval($item_starred);
$datarray['item_wall'] = $item_wall; $datarray['item_uplink'] = intval($item_uplink);
$datarray['item_origin'] = $item_origin; $datarray['item_consensus'] = intval($item_consensus);
$datarray['item_type'] = $webpage; $datarray['item_notshown'] = intval($item_notshown);
$datarray['item_thread_top'] = $item_thread_top; $datarray['item_nsfw'] = intval($item_nsfw);
$datarray['item_unseen'] = $item_unseen; $datarray['item_relay'] = intval($item_relay);
$datarray['item_starred'] = $item_starred; $datarray['item_mentionsme'] = intval($item_mentionsme);
$datarray['item_uplink'] = $item_uplink; $datarray['item_nocomment'] = intval($item_nocomment);
$datarray['item_consensus'] = $item_consensus; $datarray['item_obscured'] = intval($item_obscured);
$datarray['item_notshown'] = $item_notshown; $datarray['item_verified'] = intval($item_verified);
$datarray['item_nsfw'] = $item_nsfw; $datarray['item_retained'] = intval($item_retained);
$datarray['item_relay'] = $item_relay; $datarray['item_rss'] = intval($item_rss);
$datarray['item_mentionsme'] = $item_mentionsme; $datarray['item_deleted'] = intval($item_deleted);
$datarray['item_nocomment'] = $item_nocomment; $datarray['item_hidden'] = intval($item_hidden);
$datarray['item_obscured'] = $item_obscured; $datarray['item_unpublished'] = intval($item_unpublished);
$datarray['item_verified'] = $item_verified; $datarray['item_delayed'] = intval($item_delayed);
$datarray['item_retained'] = $item_retained; $datarray['item_pending_remove'] = intval($item_pending_remove);
$datarray['item_rss'] = $item_rss; $datarray['item_blocked'] = intval($item_blocked);
$datarray['item_deleted'] = $item_deleted; $datarray['layout_mid'] = $layout_mid;
$datarray['item_hidden'] = $item_hidden; $datarray['public_policy'] = $public_policy;
$datarray['item_unpublished'] = $item_unpublished; $datarray['comment_policy'] = map_scope($comment_policy);
$datarray['item_delayed'] = $item_delayed; $datarray['term'] = $post_tags;
$datarray['item_pending_remove'] = $item_pending_remove; $datarray['plink'] = $plink;
$datarray['item_blocked'] = $item_blocked; $datarray['route'] = $route;
$datarray['layout_mid'] = $layout_mid;
$datarray['public_policy'] = $public_policy;
$datarray['comment_policy'] = map_scope($comment_policy);
$datarray['term'] = $post_tags;
$datarray['plink'] = $plink;
$datarray['route'] = $route;
if($iconfig) if($iconfig)
$datarray['iconfig'] = $iconfig; $datarray['iconfig'] = $iconfig;