aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-06-09 16:11:58 -0700
committerredmatrix <git@macgirvin.com>2016-06-09 16:11:58 -0700
commita10f5e9e06a03789af8f08481409f0ac95059fed (patch)
treef06bcf9c057a3bf08ace1e46d0ea497fa20f88c7 /Zotlabs/Daemon
parent2ad5010dc3f2f8d077a3228915d28a3e256f6e13 (diff)
downloadvolse-hubzilla-a10f5e9e06a03789af8f08481409f0ac95059fed.tar.gz
volse-hubzilla-a10f5e9e06a03789af8f08481409f0ac95059fed.tar.bz2
volse-hubzilla-a10f5e9e06a03789af8f08481409f0ac95059fed.zip
allow an exclusion for transmitting hidden file activities. There may be a better way to do this, but it was pointed out recently that transmitting some hidden activities might cause a problem. I cannot locate the conversation at the moment to summarise the exact issue.
Diffstat (limited to 'Zotlabs/Daemon')
-rw-r--r--Zotlabs/Daemon/Notifier.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php
index 590be31ee..ebc9d83a5 100644
--- a/Zotlabs/Daemon/Notifier.php
+++ b/Zotlabs/Daemon/Notifier.php
@@ -278,7 +278,11 @@ class Notifier {
logger('notifier: target item not forwardable: type ' . $target_item['item_type'], LOGGER_DEBUG);
return;
}
- if(intval($target_item['item_unpublished']) || intval($target_item['item_delayed']) || intval($target_item['item_hidden'])) {
+
+ // Check for non published items, but allow an exclusion for transmitting hidden file activities
+
+ if(intval($target_item['item_unpublished']) || intval($target_item['item_delayed']) ||
+ ( intval($target_item['item_hidden']) && ($target_item['obj_type'] !== ACTIVITY_OBJ_FILE))) {
logger('notifier: target item not published, so not forwardable', LOGGER_DEBUG);
return;
}