aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-10-26 21:56:32 +0000
committerMario <mario@mariovavti.com>2022-10-26 21:56:32 +0000
commit95f6f9e10aca66c30a1ef7ac6ed24fd6e352007d (patch)
tree582116e7571ae7eaa4a51578b2f5ebeae31f75a9 /Zotlabs/Daemon
parentef2448e17e742e7dcef458993bce1e0a29756aa7 (diff)
parent9554f535199b5fb3a23dd40f9921a15339da3bd7 (diff)
downloadvolse-hubzilla-95f6f9e10aca66c30a1ef7ac6ed24fd6e352007d.tar.gz
volse-hubzilla-95f6f9e10aca66c30a1ef7ac6ed24fd6e352007d.tar.bz2
volse-hubzilla-95f6f9e10aca66c30a1ef7ac6ed24fd6e352007d.zip
Merge branch 'dev'
Diffstat (limited to 'Zotlabs/Daemon')
-rw-r--r--Zotlabs/Daemon/Checksites.php3
-rw-r--r--Zotlabs/Daemon/Gprobe.php7
-rw-r--r--Zotlabs/Daemon/Notifier.php8
3 files changed, 10 insertions, 8 deletions
diff --git a/Zotlabs/Daemon/Checksites.php b/Zotlabs/Daemon/Checksites.php
index 7227e96e4..eacf8c6bc 100644
--- a/Zotlabs/Daemon/Checksites.php
+++ b/Zotlabs/Daemon/Checksites.php
@@ -10,6 +10,9 @@ class Checksites {
logger('checksites: start');
+ $site_id = '';
+ $sql_options = '';
+
if (($argc > 1) && ($argv[1]))
$site_id = $argv[1];
diff --git a/Zotlabs/Daemon/Gprobe.php b/Zotlabs/Daemon/Gprobe.php
index 1124ead54..9483cb5f1 100644
--- a/Zotlabs/Daemon/Gprobe.php
+++ b/Zotlabs/Daemon/Gprobe.php
@@ -38,10 +38,9 @@ class Gprobe {
if ($url) {
$zf = Zotfinger::exec($url, null);
- }
-
- if (is_array($zf) && array_path_exists('signature/signer', $zf) && $zf['signature']['signer'] === $href && intval($zf['signature']['header_valid'])) {
- Libzot::import_xchan($zf['data']);
+ if (is_array($zf) && array_path_exists('signature/signer', $zf) && $zf['signature']['signer'] === $url && intval($zf['signature']['header_valid'])) {
+ Libzot::import_xchan($zf['data']);
+ }
}
}
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php
index 776cf4f63..f9e1d13d5 100644
--- a/Zotlabs/Daemon/Notifier.php
+++ b/Zotlabs/Daemon/Notifier.php
@@ -113,8 +113,8 @@ class Notifier {
$normal_mode = true;
$upstream = false;
$uplink = false;
- $target_item = [];
- $parent_item = [];
+ $target_item = null;
+ $parent_item = null;
$top_level_post = false;
$relay_to_owner = false;
@@ -651,7 +651,7 @@ class Notifier {
// This shouldn't produce false positives on comment boosts that were generated on other platforms
// because we won't be delivering them.
- if (isset($target_item) && isset($target_item['verb']) && $target_item['verb'] === 'Announce' && $target_item['author_xchan'] === $target_item['owner_xchan'] && ! intval($target_item['item_thread_top'])) {
+ if (isset($target_item['verb']) && $target_item['verb'] === 'Announce' && $target_item['author_xchan'] === $target_item['owner_xchan'] && ! intval($target_item['item_thread_top'])) {
continue;
}
@@ -694,7 +694,7 @@ class Notifier {
}
- if ($normal_mode) {
+ if ($normal_mode && is_array($target_item)) {
// This wastes a process if there are no delivery hooks configured, so check this before launching the new process
$x = q("select * from hook where hook = 'notifier_normal'");
if ($x) {