aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Notifier.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-06-10 10:45:09 +0200
committerMario Vavti <mario@mariovavti.com>2016-06-10 10:45:09 +0200
commit9d5d3a946817c1b1a9dc18dead85bc989e820564 (patch)
tree259c9b03921c18212a86ea7d0fc8111cd3ce5930 /Zotlabs/Daemon/Notifier.php
parent85e82e919e146454a8b3973ed4a2a69066b98aa3 (diff)
parentcf415a4312f3a926c3b080fb49042752441f23b4 (diff)
downloadvolse-hubzilla-9d5d3a946817c1b1a9dc18dead85bc989e820564.tar.gz
volse-hubzilla-9d5d3a946817c1b1a9dc18dead85bc989e820564.tar.bz2
volse-hubzilla-9d5d3a946817c1b1a9dc18dead85bc989e820564.zip
Merge branch 'dev' into sabre32
Diffstat (limited to 'Zotlabs/Daemon/Notifier.php')
-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;
}