From 1b161b0ee4d16711dc6540b14f50f20b68a7b565 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 26 Aug 2020 21:13:32 +0200 Subject: move z6trans_connections() to cron from cron daily --- Zotlabs/Daemon/Cron.php | 5 +++++ Zotlabs/Daemon/Cron_daily.php | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'Zotlabs') diff --git a/Zotlabs/Daemon/Cron.php b/Zotlabs/Daemon/Cron.php index 46f4e4071..703d6ce08 100644 --- a/Zotlabs/Daemon/Cron.php +++ b/Zotlabs/Daemon/Cron.php @@ -155,6 +155,11 @@ class Cron { } } + + // check if any connections transitioned to zot6 and upgrade the connections to zot6 at this hub if so. + require_once('include/connections.php'); + z6trans_connections(); + require_once('include/attach.php'); attach_upgrade(); diff --git a/Zotlabs/Daemon/Cron_daily.php b/Zotlabs/Daemon/Cron_daily.php index 2cf0c9119..07533cc6e 100644 --- a/Zotlabs/Daemon/Cron_daily.php +++ b/Zotlabs/Daemon/Cron_daily.php @@ -98,7 +98,6 @@ class Cron_daily { remove_obsolete_hublocs(); z6_discover(); - z6trans_connections(); call_hooks('cron_daily',datetime_convert()); -- cgit v1.2.3