should probably check the body since the title is only going to be rarely set.

This commit is contained in:
friendica 2014-10-24 14:04:32 -07:00
parent 1845ddc4c3
commit cf05266b15

View File

@ -340,7 +340,7 @@ function bb2diaspora_itembody($item,$force_update = false) {
if(array_key_exists('item_flags',$item) && ($item['item_flags'] & ITEM_OBSCURED)) { if(array_key_exists('item_flags',$item) && ($item['item_flags'] & ITEM_OBSCURED)) {
$key = get_config('system','prvkey'); $key = get_config('system','prvkey');
$b = json_decode($item['title'],true); $b = json_decode($item['body'],true);
// if called from diaspora_process_outbound, this decoding has already been done. // if called from diaspora_process_outbound, this decoding has already been done.
// Everything else that calls us will not yet be decoded. // Everything else that calls us will not yet be decoded.
if($b && is_array($b) && array_key_exists('iv',$b)) { if($b && is_array($b) && array_key_exists('iv',$b)) {