X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fitem.php;h=8c5a479646ec992c98bd0b701e2a3cbdc51d012a;hb=d6c1889a2039033b14a88cdb031461cadabf2114;hp=80a10179e873a71970d7be651ba8cad3d450cf43;hpb=f4173d17649afc81c14278941cd046f958818d93;p=friendica.git diff --git a/mod/item.php b/mod/item.php index 80a10179e8..8c5a479646 100644 --- a/mod/item.php +++ b/mod/item.php @@ -900,7 +900,7 @@ function item_post(&$a) { // Store the comment signature information in case we need to relay to Diaspora - store_diaspora_comment_sig($datarray, $author, ($self ? $a->user['prvkey'] : false), $parent_item, $post_id); + store_diaspora_comment_sig($datarray, $author, ($self ? $user['prvkey'] : false), $parent_item, $post_id); } else { $parent = $post_id; @@ -1271,7 +1271,7 @@ function store_diaspora_comment_sig($datarray, $author, $uprvkey, $parent_item, $signed_text = $datarray['guid'] . ';' . $parent_item['guid'] . ';' . $signed_body . ';' . $diaspora_handle; if( $uprvkey !== false ) - $authorsig = base64_encode(rsa_sign($signed_text,$uprvkey,'sha256')); + $authorsig = rsa_sign($signed_text,$uprvkey,'sha256'); else $authorsig = '';