diff options
-rwxr-xr-x | include/diaspora.php | 8 | ||||
-rwxr-xr-x | include/items.php | 12 | ||||
-rw-r--r-- | include/onepoll.php | 2 | ||||
-rw-r--r-- | mod/item.php | 4 | ||||
-rw-r--r-- | mod/receive.php | 2 | ||||
-rw-r--r-- | version.inc | 2 | ||||
-rw-r--r-- | view/css/mod_new_channel.css | 121 |
7 files changed, 133 insertions, 18 deletions
diff --git a/include/diaspora.php b/include/diaspora.php index 3b6321643..b0943b7ec 100755 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -58,7 +58,7 @@ function diaspora_dispatch($importer,$msg,$attempt=1) { $xmlbase = $parsed_xml->post; - logger('diaspora_dispatch: ' . print_r($xmlbase,true), LOGGER_DEBUG); + logger('diaspora_dispatch: ' . print_r($xmlbase,true), LOGGER_DATA); if($xmlbase->request) { @@ -545,7 +545,7 @@ function diaspora_decode($importer,$xml) { * </decrypted_header> */ - logger('decrypted: ' . $decrypted, LOGGER_DEBUG); + logger('decrypted: ' . $decrypted, LOGGER_DATA); $idom = parse_xml_string($decrypted,false); $inner_iv = base64_decode($idom->iv); @@ -912,7 +912,7 @@ function diaspora_post($importer,$xml,$msg) { function diaspora_reshare($importer,$xml,$msg) { - logger('diaspora_reshare: init: ' . print_r($xml,true)); + logger('diaspora_reshare: init: ' . print_r($xml,true), LOGGER_DATA); $a = get_app(); $guid = notags(unxmlify($xml->guid)); @@ -955,7 +955,7 @@ function diaspora_reshare($importer,$xml,$msg) { logger('diaspora_reshare: unable to fetch source url ' . $source_url); return; } - logger('diaspora_reshare: source: ' . $x['body']); + logger('diaspora_reshare: source: ' . $x['body'], LOGGER_DATA); $source_xml = parse_xml_string($x['body'],false); 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(); diff --git a/include/onepoll.php b/include/onepoll.php index 1f28852e9..98d52db93 100644 --- a/include/onepoll.php +++ b/include/onepoll.php @@ -135,7 +135,7 @@ function onepoll_run($argv, $argc){ foreach($j['messages'] as $message) { $results = process_delivery(array('hash' => $contact['xchan_hash']), get_item_elements($message), array(array('hash' => $importer['xchan_hash'])), false); - logger('onepoll: feed_update: process_delivery: ' . print_r($results,true)); + logger('onepoll: feed_update: process_delivery: ' . print_r($results,true), LOGGER_DATA); $total ++; } logger("onepoll: $total messages processed"); diff --git a/mod/item.php b/mod/item.php index 23d39a62c..7f25b35b8 100644 --- a/mod/item.php +++ b/mod/item.php @@ -854,7 +854,9 @@ function item_post(&$a) { if($parent) { // Store the comment signature information in case we need to relay to Diaspora //FIXME - store_diaspora_comment_sig($datarray,$channel,$parent_item, $post_id); + $ditem = $datarray; + $ditem['author'] = $observer; + store_diaspora_comment_sig($ditem,$channel,$parent_item, $post_id); } update_remote_id($channel,$post_id,$webpage,$pagetitle,$namespace,$remote_id,$mid); diff --git a/mod/receive.php b/mod/receive.php index 2a68019e0..4071b169b 100644 --- a/mod/receive.php +++ b/mod/receive.php @@ -58,7 +58,7 @@ function receive_post(&$a) { logger('mod-diaspora: decoded', LOGGER_DEBUG); - logger('mod-diaspora: decoded msg: ' . print_r($msg,true), LOGGER_DEBUG); + logger('mod-diaspora: decoded msg: ' . print_r($msg,true), LOGGER_DATA); if(! is_array($msg)) http_status_exit(500); diff --git a/version.inc b/version.inc index d75eabb40..61b92795e 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2014-09-18.802 +2014-09-19.803 diff --git a/view/css/mod_new_channel.css b/view/css/mod_new_channel.css index 2af0fbb2d..fcef128e3 100644 --- a/view/css/mod_new_channel.css +++ b/view/css/mod_new_channel.css @@ -38,3 +38,124 @@ h2 { margin-bottom: 20px; } +/** +* Stylish Select 0.4.9 - $ plugin to replace a select drop down box with a stylable unordered list +* http://github.com/scottdarby/Stylish-Select/ +* +* Copyright (c) 2009 Scott Darby +* +* Requires: jQuery 1.3 or newer +* +* Dual licensed under the MIT and GPL licenses. +*/ + +/** +* Hide lists on page load +---------------------------------------------------------*/ + +#privacy-role-select .SSContainerDivWrapper { + left:-9999px; +} + +/* +* Red example +---------------------------------------------------------*/ +#privacy-role-select .SSContainerDivWrapper { + margin:0; + padding:0; + width:290px; + position:absolute; + top:22px; + left:0; + z-index:2; +} + +#privacy-role-select ul.newList { + margin:0; + padding:0; + list-style:none; + color:#000; + background:#fff; + border:1px solid #ccc; + overflow:auto; +} + +#privacy-role-select ul.newList * { + margin:0; + padding:0; +} + + +#privacy-role-select ul.newList a { + color: #000; + text-decoration:none; + display:block; + padding:3px 8px; +} + +#privacy-role-select .newListSelected { + width:285px; + color:#000; + height:19px; + padding:3px 0 0 6px; + float:left; + background:url(select-bg.png) no-repeat; +} + +#privacy-role-select ul.newList li a:focus { + -moz-outline-style: none; +} + +#privacy-role-select .selectedTxt { + width:258px; + overflow:hidden; + height:16px; + padding:0 23px 0 0; +} + +#privacy-role-select .hiLite { + background:#650101!important; + color:#fff!important; +} + +#privacy-role-select .newListHover { + background:#ccc!important; + color:#000!important; + cursor:default; +} + +#privacy-role-select .newListDisabled { + opacity: 0.6; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; + filter: alpha(opacity=60); +} + +#privacy-role-select .newListItemDisabled { + opacity: 0.6; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; + filter: alpha(opacity=60); +} + +#privacy-role-select .newListOptionDisabled { + opacity: 0.6; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; + filter: alpha(opacity=60); +} + +#privacy-role-select .newListSelHover, +#privacy-role-select .newListSelFocus { + background-position:0 -22px; + cursor:default; +} + +#privacy-role-select .newListOptionTitle { + font-weight:bold; +} + +#privacy-role-select .newListOptionTitle ul { + margin:3px 0 0; +} + +#privacy-role-select .newListOptionTitle li { + font-weight:normal; +}
\ No newline at end of file |