aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Notifier.php
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/Notifier.php
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/Notifier.php')
-rw-r--r--Zotlabs/Daemon/Notifier.php8
1 files changed, 4 insertions, 4 deletions
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) {