aboutsummaryrefslogtreecommitdiffstats
path: root/include/hubloc.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-27 13:43:12 -0800
committerfriendica <info@friendica.com>2015-02-27 13:43:12 -0800
commit2b44c5fc72ac1a76b0a711d459ddcb52ed6666dc (patch)
tree8ca0bd9d8f4e7cc43ed8f90ca90b23ed04ef7127 /include/hubloc.php
parent2a74fab21a3e055a794ebef421eada79ca89c390 (diff)
downloadvolse-hubzilla-2b44c5fc72ac1a76b0a711d459ddcb52ed6666dc.tar.gz
volse-hubzilla-2b44c5fc72ac1a76b0a711d459ddcb52ed6666dc.tar.bz2
volse-hubzilla-2b44c5fc72ac1a76b0a711d459ddcb52ed6666dc.zip
Fix a couple of places where we weren't checking for dead hublocs. Add a function to mark a hubloc dead.
Diffstat (limited to 'include/hubloc.php')
-rw-r--r--include/hubloc.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/hubloc.php b/include/hubloc.php
index b5a3d47c5..94f1dc985 100644
--- a/include/hubloc.php
+++ b/include/hubloc.php
@@ -170,7 +170,16 @@ 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_posturl = '%s'",
+ intval(HUBLOC_OFFLINE)
+ );
+}
+
function xchan_store($arr) {