diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-05-06 21:03:33 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-05-06 21:03:33 -0700 |
commit | 25b599a4bd831f175572c2388754e8734a255d77 (patch) | |
tree | 16559183d5d004c430dd8d83171bb9348e784021 /include/zot.php | |
parent | 75b8bfc07a2431a6d4d5f2f72864d6cd3aa33cf6 (diff) | |
download | volse-hubzilla-25b599a4bd831f175572c2388754e8734a255d77.tar.gz volse-hubzilla-25b599a4bd831f175572c2388754e8734a255d77.tar.bz2 volse-hubzilla-25b599a4bd831f175572c2388754e8734a255d77.zip |
convert ITEM_WALL from bitfield to standalone
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/zot.php b/include/zot.php index 53d3376dc..15d724026 100644 --- a/include/zot.php +++ b/include/zot.php @@ -1559,12 +1559,12 @@ function process_delivery($sender, $arr, $deliveries, $relay, $public = false, $ // This is our own post, possibly coming from a channel clone if($arr['owner_xchan'] == $d['hash']) { - $arr['item_flags'] = $arr['item_flags'] | ITEM_WALL; + $arr['item_wall'] = 1; } else { // clear the wall flag if it is set - if($arr['item_flags'] & ITEM_WALL) { - $arr['item_flags'] = ($arr['item_flags'] ^ ITEM_WALL); + if(intval($arr['item_wall'])) { + $arr['item_wall'] = 0; } } |