"false" issue
This commit is contained in:
parent
aa4bf824a4
commit
38f931618c
@ -2672,6 +2672,7 @@ function tgroup_check($uid,$item) {
|
|||||||
function start_delivery_chain($channel,$item,$item_id,$parent) {
|
function start_delivery_chain($channel,$item,$item_id,$parent) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Change this copy of the post to a forum head message and deliver to all the tgroup members
|
// Change this copy of the post to a forum head message and deliver to all the tgroup members
|
||||||
// also reset all the privacy bits to the forum default permissions
|
// also reset all the privacy bits to the forum default permissions
|
||||||
|
|
||||||
@ -2708,16 +2709,20 @@ function start_delivery_chain($channel,$item,$item_id,$parent) {
|
|||||||
if(!($flag_bits & ITEM_OBSCURED)) {
|
if(!($flag_bits & ITEM_OBSCURED)) {
|
||||||
$key = get_config('system','pubkey');
|
$key = get_config('system','pubkey');
|
||||||
$flag_bits = $flag_bits|ITEM_OBSCURED;
|
$flag_bits = $flag_bits|ITEM_OBSCURED;
|
||||||
$title = json_encode(aes_encapsulate($title,$key));
|
if($title)
|
||||||
$body = json_encode(aes_encapsulate($body,$key));
|
$title = json_encode(aes_encapsulate($title,$key));
|
||||||
|
if($body)
|
||||||
|
$body = json_encode(aes_encapsulate($body,$key));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if($flag_bits & ITEM_OBSCURED) {
|
if($flag_bits & ITEM_OBSCURED) {
|
||||||
$key = get_config('system','prvkey');
|
$key = get_config('system','prvkey');
|
||||||
$flag_bits = $flag_bits ^ ITEM_OBSCURED;
|
$flag_bits = $flag_bits ^ ITEM_OBSCURED;
|
||||||
$title = json_encode(aes_unencapsulate($title,$key));
|
if($title)
|
||||||
$body = json_encode(aes_unencapsulate($body,$key));
|
$title = crypto_unencapsulate(json_decode($title,true),$key);
|
||||||
|
if($body)
|
||||||
|
$body = crypto_unencapsulate(json_decode($body,true),$key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user