typo
This commit is contained in:
parent
8f381e01ae
commit
37730ecc2a
2
boot.php
2
boot.php
|
@ -9,7 +9,7 @@ require_once('include/nav.php');
|
||||||
require_once('include/cache.php');
|
require_once('include/cache.php');
|
||||||
|
|
||||||
define ( 'FRIENDICA_PLATFORM', 'Friendica');
|
define ( 'FRIENDICA_PLATFORM', 'Friendica');
|
||||||
define ( 'FRIENDICA_VERSION', '2.3.1180' );
|
define ( 'FRIENDICA_VERSION', '2.3.1181' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1107 );
|
define ( 'DB_UPDATE_VERSION', 1107 );
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,9 @@ function diaspora_dispatch($importer,$msg) {
|
||||||
|
|
||||||
$xmlbase = $parsed_xml->post;
|
$xmlbase = $parsed_xml->post;
|
||||||
|
|
||||||
|
logger('diaspora_dispatch: ' . print_r($xmlbase,true), LOGGER_DEBUG);
|
||||||
|
|
||||||
|
|
||||||
if($xmlbase->request) {
|
if($xmlbase->request) {
|
||||||
$ret = diaspora_request($importer,$xmlbase->request);
|
$ret = diaspora_request($importer,$xmlbase->request);
|
||||||
}
|
}
|
||||||
|
|
|
@ -187,7 +187,7 @@ function message_content(&$a) {
|
||||||
$o .= replace_macros($tpl, array(
|
$o .= replace_macros($tpl, array(
|
||||||
'$id' => $rr['id'],
|
'$id' => $rr['id'],
|
||||||
'$from_name' =>$rr['from-name'],
|
'$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',
|
'$sparkle' => ' sparkle',
|
||||||
'$from_photo' => $rr['thumb'],
|
'$from_photo' => $rr['thumb'],
|
||||||
'$subject' => template_escape((($rr['mailseen']) ? $rr['title'] : '<strong>' . $rr['title'] . '</strong>')),
|
'$subject' => template_escape((($rr['mailseen']) ? $rr['title'] : '<strong>' . $rr['title'] . '</strong>')),
|
||||||
|
|
|
@ -18,12 +18,14 @@ function ping_init(&$a) {
|
||||||
$friends = array();
|
$friends = array();
|
||||||
$posts = array();
|
$posts = array();
|
||||||
|
|
||||||
|
|
||||||
$r = q("SELECT `item`.`id`,`item`.`parent`, `item`.`verb`, `item`.`author-name`,
|
$r = q("SELECT `item`.`id`,`item`.`parent`, `item`.`verb`, `item`.`author-name`,
|
||||||
`item`.`author-link`, `item`.`author-avatar`, `item`.`created`, `item`.`object`,
|
`item`.`author-link`, `item`.`author-avatar`, `item`.`created`, `item`.`object`,
|
||||||
`pitem`.`author-name` as `pname`, `pitem`.`author-link` as `plink`
|
`pitem`.`author-name` as `pname`, `pitem`.`author-link` as `plink`
|
||||||
FROM `item` INNER JOIN `item` as `pitem` ON `pitem`.`id`=`item`.`parent`
|
FROM `item` INNER JOIN `item` as `pitem` ON `pitem`.`id`=`item`.`parent`
|
||||||
WHERE `item`.`unseen` = 1 AND `item`.`visible` = 1 AND
|
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())
|
intval(local_user())
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user