aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-01 15:55:27 -0800
committerfriendica <info@friendica.com>2015-03-01 15:55:27 -0800
commitba7bdd79b720dcb58dfd88a38f43444eb4da06f4 (patch)
treed9b89756a135b047366832c2c1a6c68f97af6db7 /include
parentced19bf7d81a328cbf3d29bb701685c27319a473 (diff)
downloadvolse-hubzilla-ba7bdd79b720dcb58dfd88a38f43444eb4da06f4.tar.gz
volse-hubzilla-ba7bdd79b720dcb58dfd88a38f43444eb4da06f4.tar.bz2
volse-hubzilla-ba7bdd79b720dcb58dfd88a38f43444eb4da06f4.zip
queue management actions. Still needs further work such as indication of last successful connection or indication that the hub was marked offline, but these are potentially expensive queries.
Diffstat (limited to 'include')
-rw-r--r--include/hubloc.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/hubloc.php b/include/hubloc.php
index 94f1dc985..98c1a21f3 100644
--- a/include/hubloc.php
+++ b/include/hubloc.php
@@ -175,8 +175,9 @@ function hubloc_change_primary($hubloc) {
// The https might be alive, and the http dead.
function hubloc_mark_as_down($posturl) {
- $r = q("update hubloc set hubloc_status = ( hubloc_status | %d ) where hubloc_posturl = '%s'",
- intval(HUBLOC_OFFLINE)
+ $r = q("update hubloc set hubloc_status = ( hubloc_status | %d ) where hubloc_callback = '%s'",
+ intval(HUBLOC_OFFLINE),
+ dbesc($posturl)
);
}