From 37730ecc2aa9a55faa232658fc348da241416700 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 30 Nov 2011 17:08:16 -0800 Subject: [PATCH] typo --- boot.php | 2 +- include/diaspora.php | 3 +++ mod/message.php | 2 +- mod/ping.php | 4 +++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/boot.php b/boot.php index 2d937f2c44..50cfbf6616 100644 --- a/boot.php +++ b/boot.php @@ -9,7 +9,7 @@ require_once('include/nav.php'); require_once('include/cache.php'); define ( 'FRIENDICA_PLATFORM', 'Friendica'); -define ( 'FRIENDICA_VERSION', '2.3.1180' ); +define ( 'FRIENDICA_VERSION', '2.3.1181' ); define ( 'DFRN_PROTOCOL_VERSION', '2.22' ); define ( 'DB_UPDATE_VERSION', 1107 ); diff --git a/include/diaspora.php b/include/diaspora.php index 8e4f919c5f..9cef21ceb3 100644 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -41,6 +41,9 @@ function diaspora_dispatch($importer,$msg) { $xmlbase = $parsed_xml->post; + logger('diaspora_dispatch: ' . print_r($xmlbase,true), LOGGER_DEBUG); + + if($xmlbase->request) { $ret = diaspora_request($importer,$xmlbase->request); } diff --git a/mod/message.php b/mod/message.php index d48db8807a..60e6b38fce 100644 --- a/mod/message.php +++ b/mod/message.php @@ -187,7 +187,7 @@ function message_content(&$a) { $o .= replace_macros($tpl, array( '$id' => $rr['id'], '$from_name' =>$rr['from-name'], - '$from_url' => (($rr['network'] === NETWORK_DFRN) ? $a->get_baseurl() . '/redir/' . $rr['contact-id'] : $rr['url'], + '$from_url' => (($rr['network'] === NETWORK_DFRN) ? $a->get_baseurl() . '/redir/' . $rr['contact-id'] : $rr['url']), '$sparkle' => ' sparkle', '$from_photo' => $rr['thumb'], '$subject' => template_escape((($rr['mailseen']) ? $rr['title'] : '' . $rr['title'] . '')), diff --git a/mod/ping.php b/mod/ping.php index 9f6ae1974b..df07cb768e 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -18,12 +18,14 @@ function ping_init(&$a) { $friends = array(); $posts = array(); + $r = q("SELECT `item`.`id`,`item`.`parent`, `item`.`verb`, `item`.`author-name`, `item`.`author-link`, `item`.`author-avatar`, `item`.`created`, `item`.`object`, `pitem`.`author-name` as `pname`, `pitem`.`author-link` as `plink` FROM `item` INNER JOIN `item` as `pitem` ON `pitem`.`id`=`item`.`parent` WHERE `item`.`unseen` = 1 AND `item`.`visible` = 1 AND - `item`.`deleted` = 0 AND `item`.`uid` = %d AND `item`.`wall` = 0 ORDER BY `item`.`created` DESC", + `item`.`deleted` = 0 AND `item`.`uid` = %d AND `item`.`wall` = 0 + ORDER BY `item`.`created` DESC", intval(local_user()) );