added variable to store the raw json string as received, since this is signed and we may need to forward the signed data.

This commit is contained in:
zotlabs 2018-04-23 21:55:16 -07:00
parent b688dc3995
commit a6c42e8756

View File

@ -9,6 +9,7 @@ namespace Zotlabs\Lib;
*/
class ActivityStreams {
public $raw = null;
public $data;
public $valid = false;
public $id = '';
@ -33,6 +34,7 @@ class ActivityStreams {
*/
function __construct($string) {
$this->raw = $string;
$this->data = json_decode($string, true);
if($this->data) {
$this->valid = true;