don't remove obsolete hublocs that have no sitekey - it will remove all kinds of other hublocs it isn't supposed to (e.g. diaspora).
This commit is contained in:
parent
72474b29fc
commit
1780ba5e7d
@ -33,7 +33,7 @@ function prune_hub_reinstalls() {
|
|||||||
// allow some slop period, say 3 days - just in case this is a glitch or transient occurrence
|
// allow some slop period, say 3 days - just in case this is a glitch or transient occurrence
|
||||||
// Then remove any hublocs pointing to the oldest entry.
|
// Then remove any hublocs pointing to the oldest entry.
|
||||||
|
|
||||||
if($d1 < $d2) {
|
if(($d1 < $d2) && ($x[0]['hubloc_sitekey'])) {
|
||||||
logger('prune_hub_reinstalls: removing dead hublocs at ' . $rr['site_url']);
|
logger('prune_hub_reinstalls: removing dead hublocs at ' . $rr['site_url']);
|
||||||
$y = q("delete from hubloc where hubloc_sitekey = '%s'",
|
$y = q("delete from hubloc where hubloc_sitekey = '%s'",
|
||||||
dbesc($x[0]['hubloc_sitekey'])
|
dbesc($x[0]['hubloc_sitekey'])
|
||||||
|
@ -1 +1 @@
|
|||||||
2014-12-12.887
|
2014-12-14.889
|
||||||
|
Reference in New Issue
Block a user