aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-03-30 13:23:16 +0000
committerMario <mario@mariovavti.com>2023-03-30 13:23:16 +0000
commit24568c0e2f5f8537da7a6bc6a62b5785edf2cb9f (patch)
treed44a9b6fbeac5bfefd1b42527fabd3044c127608 /Zotlabs
parent92a89ca25800d745b2a9aba5c619e6e453ff5060 (diff)
downloadvolse-hubzilla-24568c0e2f5f8537da7a6bc6a62b5785edf2cb9f.tar.gz
volse-hubzilla-24568c0e2f5f8537da7a6bc6a62b5785edf2cb9f.tar.bz2
volse-hubzilla-24568c0e2f5f8537da7a6bc6a62b5785edf2cb9f.zip
add some explanation and remove logging
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Daemon/Notifier.php1
-rw-r--r--Zotlabs/Lib/Libzot.php5
2 files changed, 5 insertions, 1 deletions
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php
index 4f0538965..d5fe7ee6d 100644
--- a/Zotlabs/Daemon/Notifier.php
+++ b/Zotlabs/Daemon/Notifier.php
@@ -334,7 +334,6 @@ class Notifier {
$m = get_iconfig($target_item, 'activitypub', 'signed_data');
// Re-use existing signature unless the activity type changed to a Tombstone, which won't verify.
if ($m && (!intval($target_item['item_deleted']))) {
- hz_syslog('notifier existing');
self::$encoded_item = json_decode($m, true);
}
else {
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index 709c9dc94..129ac6b56 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -1583,6 +1583,11 @@ class Libzot {
* There's a chance the current delivery could take place before the cloned copy arrives
* hence the item could have the wrong ACL and *could* be used in subsequent deliveries or
* access checks.
+ *
+ * 30.3.23: block all incoming items from ourselves except if the origin is local.
+ * This is to prevent multiple relay delivery of items that arrive via sync.
+ * They have already been relayed at the origin location.
+ *
*/
if ($sender === $channel['channel_hash'] && $arr['author_xchan'] === $channel['channel_hash'] && !str_starts_with($arr['mid'], z_root())) {