diff options
Diffstat (limited to 'include/hubloc.php')
-rw-r--r-- | include/hubloc.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/hubloc.php b/include/hubloc.php index b5a3d47c5..98c1a21f3 100644 --- a/include/hubloc.php +++ b/include/hubloc.php @@ -170,7 +170,17 @@ function hubloc_change_primary($hubloc) { return true; } - + +// We use the post url to distinguish between http and https hublocs. +// 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_callback = '%s'", + intval(HUBLOC_OFFLINE), + dbesc($posturl) + ); +} + function xchan_store($arr) { |