aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-19 02:22:24 -0700
committerfriendica <info@friendica.com>2014-09-19 02:22:24 -0700
commit87a6f257691e68ebf0364476493ff19c9f220297 (patch)
tree5d51410122cb37bf5e9b23012d0dcce6ef5b7e08 /include/items.php
parent083b5da967d52780d0ff2f9e3a01484c45eed38d (diff)
downloadvolse-hubzilla-87a6f257691e68ebf0364476493ff19c9f220297.tar.gz
volse-hubzilla-87a6f257691e68ebf0364476493ff19c9f220297.tar.bz2
volse-hubzilla-87a6f257691e68ebf0364476493ff19c9f220297.zip
try to sort out walltowall translation for diaspora recipients
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/include/items.php b/include/items.php
index 1fa833eb2..840c92982 100755
--- a/include/items.php
+++ b/include/items.php
@@ -2469,18 +2469,10 @@ function store_diaspora_comment_sig($datarray, $channel, $parent_item, $post_id)
return;
}
- $body = $datarray['body'];
- if(array_key_exists('item_flags',$datarray) && ($datarray['item_flags'] & ITEM_OBSCURED)) {
- $key = get_config('system','prvkey');
- if($datarray['body'])
- $body = crypto_unencapsulate(json_decode($datarray['body'],true),$key);
- }
-
- logger('mod_item: storing diaspora comment signature',LOGGER_DEBUG);
-
require_once('include/bb2diaspora.php');
+ $signed_body = bb2diaspora_itembody($datarray);
- $signed_body = html_entity_decode(bb2diaspora($body));
+ logger('mod_item: storing diaspora comment signature',LOGGER_DEBUG);
$diaspora_handle = $channel['channel_address'] . '@' . get_app()->get_hostname();