mirror of
https://github.com/friendica/friendica
synced 2024-12-23 14:00:15 +00:00
Cleaning the code from several tests.
This commit is contained in:
parent
4750775752
commit
a3118e0a6e
3 changed files with 16 additions and 17 deletions
|
@ -115,7 +115,7 @@ function get_feed_for(&$a, $dfrn_id, $owner_nick, $last_update, $direction = 0,
|
||||||
else
|
else
|
||||||
$sort = 'ASC';
|
$sort = 'ASC';
|
||||||
|
|
||||||
// Include answers to status.net posts in public feeds
|
// Include answers to status.net posts in pubsub feeds
|
||||||
if($forpubsub) {
|
if($forpubsub) {
|
||||||
$sql_post_table = "INNER JOIN `thread` ON `thread`.`iid` = `item`.`parent` ";
|
$sql_post_table = "INNER JOIN `thread` ON `thread`.`iid` = `item`.`parent` ";
|
||||||
$visibility = "OR (`item`.`network` = 'dfrn' AND `thread`.`network`='stat')";
|
$visibility = "OR (`item`.`network` = 'dfrn' AND `thread`.`network`='stat')";
|
||||||
|
|
|
@ -46,9 +46,8 @@ function handle_pubsubhubbub() {
|
||||||
if ($new_push > 30) // OK, let's give up
|
if ($new_push > 30) // OK, let's give up
|
||||||
$new_push = 0;
|
$new_push = 0;
|
||||||
|
|
||||||
q("UPDATE `push_subscriber` SET `push` = %d, last_update = '%s' WHERE id = %d",
|
q("UPDATE `push_subscriber` SET `push` = %d WHERE id = %d",
|
||||||
$new_push,
|
$new_push,
|
||||||
dbesc($date_now),
|
|
||||||
intval($rr['id']));
|
intval($rr['id']));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,7 +66,7 @@ function get_salmon_key($uri,$keyhash) {
|
||||||
|
|
||||||
function slapper($owner,$url,$slap) {
|
function slapper($owner,$url,$slap) {
|
||||||
|
|
||||||
logger('slapper called for '.$owner['url'].' to '.$url.' . Data: ' . $slap);
|
logger('slapper called. Data: ' . $slap);
|
||||||
|
|
||||||
// does contact have a salmon endpoint?
|
// does contact have a salmon endpoint?
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue