mirror of
https://github.com/friendica/friendica
synced 2025-04-27 03:50:11 +00:00
added spaces + some curly braces
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
0cd241bcbe
commit
41a36606c6
60 changed files with 1018 additions and 930 deletions
|
@ -28,10 +28,12 @@ function handle_pubsubhubbub($id) {
|
|||
global $a;
|
||||
|
||||
$r = q("SELECT * FROM `push_subscriber` WHERE `id` = %d", intval($id));
|
||||
if (!$r)
|
||||
|
||||
if (!dbm::is_result($r)) {
|
||||
return;
|
||||
else
|
||||
$rr = $r[0];
|
||||
}
|
||||
|
||||
$rr = $r[0];
|
||||
|
||||
logger("Generate feed of user ".$rr['nickname']." to ".$rr['callback_url']." - last updated ".$rr['last_update'], LOGGER_DEBUG);
|
||||
|
||||
|
@ -65,8 +67,10 @@ function handle_pubsubhubbub($id) {
|
|||
// increment this until some upper limit where we give up
|
||||
$new_push = intval($rr['push']) + 1;
|
||||
|
||||
if ($new_push > 30) // OK, let's give up
|
||||
if ($new_push > 30) {
|
||||
// OK, let's give up
|
||||
$new_push = 0;
|
||||
}
|
||||
|
||||
q("UPDATE `push_subscriber` SET `push` = %d WHERE id = %d",
|
||||
$new_push,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue