X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FProtocol%2FDFRN.php;h=194fa43fdd4fc51ac537566ba1aa55d45789bfb3;hb=2364a1fb43863cfe79b9cff341e973afb8363a49;hp=d20b8949b89aaae37baae0b584f4e1fb18d64ad9;hpb=aeef4960a1191d62c4cbdd6cc0e67d1c19ae9b84;p=friendica.git diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index d20b8949b8..194fa43fdd 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -899,7 +899,7 @@ class DFRN $entry->setAttribute("xmlns:statusnet", ActivityNamespace::STATUSNET); } - $body = Post\Media::addAttachmentsToBody($item['uri-id'], $item['body']); + $body = Post\Media::addAttachmentsToBody($item['uri-id'], $item['body'] ?? ''); if ($item['private'] == Item::PRIVATE) { $body = Item::fixPrivatePhotos($body, $owner['uid'], $item, $cid); @@ -1272,7 +1272,7 @@ class DFRN switch ($rino_remote_version) { case 1: - $key = openssl_random_pseudo_bytes(16); + $key = random_bytes(16); $data = self::aesEncrypt($postvars['data'], $key); break;