diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-08-08 15:19:50 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-08-08 15:19:50 -0700 |
commit | 8ce4814835e10dc579036be9ff4e61077df875ae (patch) | |
tree | 4ff040c171000bef0fef5104ade440524bf76430 /include/items.php | |
parent | bf3ea2cd47c117f34298f3c5e100547613cfafa3 (diff) | |
download | volse-hubzilla-8ce4814835e10dc579036be9ff4e61077df875ae.tar.gz volse-hubzilla-8ce4814835e10dc579036be9ff4e61077df875ae.tar.bz2 volse-hubzilla-8ce4814835e10dc579036be9ff4e61077df875ae.zip |
convert diaspora_signature to json for storage
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php index c1b50da22..78c9cb4dd 100755 --- a/include/items.php +++ b/include/items.php @@ -866,6 +866,9 @@ function get_item_elements($x) { $arr['sig'] = (($x['signature']) ? htmlspecialchars($x['signature'], ENT_COMPAT,'UTF-8',false) : ''); + if(array_key_exists('diaspora_signature',$x) && is_array($x['diaspora_signature'])) + $x['diaspora_signature'] = json_encode($x['diaspora_signature']); + $arr['diaspora_meta'] = (($x['diaspora_signature']) ? $x['diaspora_signature'] : ''); $arr['object'] = activity_sanitise($x['object']); $arr['target'] = activity_sanitise($x['target']); |