From cb76fb8b9b659c4ec06e359f375a35a534927b99 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 23 Jun 2015 19:45:39 -0700 Subject: item flag fixes discovered after a few merges --- mod/branchtopic.php | 3 +-- mod/editpost.php | 2 +- mod/public.php | 2 +- mod/search.php | 1 - 4 files changed, 3 insertions(+), 5 deletions(-) (limited to 'mod') diff --git a/mod/branchtopic.php b/mod/branchtopic.php index 609cb19ec..d49bbaf4c 100644 --- a/mod/branchtopic.php +++ b/mod/branchtopic.php @@ -33,8 +33,7 @@ function branchtopic_init(&$a) { intval(local_channel()) ); - $x = q("update item set parent = id, route = '', item_flags = (item_flags | %d) where id = %d", - intval(ITEM_THREAD_TOP), + $x = q("update item set parent = id, route = '', item_thread_top = 1 where id = %d", intval($item_id) ); diff --git a/mod/editpost.php b/mod/editpost.php index 66196b2d2..8e4b37103 100644 --- a/mod/editpost.php +++ b/mod/editpost.php @@ -126,7 +126,7 @@ function editpost_content(&$a) { '$noloc' => t('Clear browser location'), '$voting' => t('Toggle voting'), '$feature_voting' => $voting, - '$consensus' => (($itm[0]['item_flags'] & ITEM_CONSENSUS) ? 1 : 0), + '$consensus' => intval($itm[0]['item_consensus']), '$wait' => t('Please wait'), '$permset' => t('Permission settings'), '$ptyp' => $itm[0]['type'], diff --git a/mod/public.php b/mod/public.php index fe3f3aa21..2106be7a6 100644 --- a/mod/public.php +++ b/mod/public.php @@ -71,7 +71,7 @@ function public_content(&$a, $update = 0, $load = false) { require_once('include/security.php'); if(get_config('system','site_firehose')) { - $uids = " and item.uid in ( " . stream_perms_api_uids(PERMS_PUBLIC) . " ) and item_private = 0 and (item_flags & " . intval(ITEM_WALL) . " ) > 0 "; + $uids = " and item.uid in ( " . stream_perms_api_uids(PERMS_PUBLIC) . " ) and item_private = 0 and item_wall = 1 "; } else { $sys = get_sys_channel(); diff --git a/mod/search.php b/mod/search.php index 0363a225f..dceb7d72a 100644 --- a/mod/search.php +++ b/mod/search.php @@ -172,7 +172,6 @@ function search_content(&$a,$update = 0, $load = false) { $item_normal $sql_extra $suffix $pager_sql", - intval(ITEM_OBSCURED), dbesc($sys['xchan_hash']) ); } -- cgit v1.2.3