diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-05-21 22:17:17 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-05-21 22:17:17 -0700 |
commit | 5795e2a58bb4a0702a3d318ec6ac05681d6e5864 (patch) | |
tree | b416235fa275f7cb036c31737be5fb224a75a87c /mod/item.php | |
parent | 25bd332aab20662e55824031dfd19dff23e248f8 (diff) | |
download | volse-hubzilla-5795e2a58bb4a0702a3d318ec6ac05681d6e5864.tar.gz volse-hubzilla-5795e2a58bb4a0702a3d318ec6ac05681d6e5864.tar.bz2 volse-hubzilla-5795e2a58bb4a0702a3d318ec6ac05681d6e5864.zip |
more migration of page types
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mod/item.php b/mod/item.php index 83cf3ce2d..8365aefb0 100644 --- a/mod/item.php +++ b/mod/item.php @@ -115,7 +115,7 @@ function item_post(&$a) { * Check service class limits */ if ($uid && !(x($_REQUEST,'parent')) && !(x($_REQUEST,'post_id'))) { - $ret = item_check_service_class($uid,(($_REQUEST['webpage'] == ITEM_WEBPAGE) ? true : false)); + $ret = item_check_service_class($uid,(($_REQUEST['webpage'] == ITEM_TYPE_WEBPAGE) ? true : false)); if (!$ret['success']) { notice( t($ret['message']) . EOL) ; if(x($_REQUEST,'return')) @@ -674,9 +674,6 @@ function item_post(&$a) { if($moderated) $item_restrict = $item_restrict | ITEM_MODERATED; - if($webpage) - $item_restrict = $item_restrict | $webpage; - if(! strlen($verb)) $verb = ACTIVITY_POST ; @@ -742,6 +739,7 @@ function item_post(&$a) { $datarray['item_unseen'] = $item_unseen; $datarray['item_wall'] = $item_wall; $datarray['item_origin'] = $item_origin; + $datarray['item_type'] = $webpage; $datarray['item_thread_top'] = $item_thread_top; $datarray['layout_mid'] = $layout_mid; $datarray['public_policy'] = $public_policy; |