aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-04-15 18:35:22 -0700
committerfriendica <info@friendica.com>2014-04-15 18:35:22 -0700
commit1eb8e570bf3ac3e2fd8e84ba4ebdffd1c864a3e0 (patch)
treeab3e719aaa06d698801f2168a16ca029b1011f1a /include
parent9026ea649a92b8f3e48a4940dd02c316c0a87c02 (diff)
downloadvolse-hubzilla-1eb8e570bf3ac3e2fd8e84ba4ebdffd1c864a3e0.tar.gz
volse-hubzilla-1eb8e570bf3ac3e2fd8e84ba4ebdffd1c864a3e0.tar.bz2
volse-hubzilla-1eb8e570bf3ac3e2fd8e84ba4ebdffd1c864a3e0.zip
tag anyone
Diffstat (limited to 'include')
-rw-r--r--include/notifier.php20
1 files changed, 3 insertions, 17 deletions
diff --git a/include/notifier.php b/include/notifier.php
index 4b387513b..dbae6211c 100644
--- a/include/notifier.php
+++ b/include/notifier.php
@@ -265,23 +265,9 @@ function notifier_run($argv, $argc){
if($target_item['item_restrict'] & ITEM_DELETED)
logger('notifier: target item ITEM_DELETED', LOGGER_DEBUG);
- if($target_item['item_restrict'] & ITEM_DELAYED_PUBLISH) {
- logger('notifier: target item ITEM_DELAYED_PUBLISH', LOGGER_DEBUG);
- return;
- }
-
- if($target_item['item_restrict'] & ITEM_WEBPAGE) {
- logger('notifier: target item ITEM_WEBPAGE', LOGGER_DEBUG);
- return;
- }
-
- if($target_item['item_restrict'] & ITEM_BUILDBLOCK) {
- logger('notifier: target item ITEM_BUILDBLOCK', LOGGER_DEBUG);
- return;
- }
-
- if($target_item['item_restrict'] & ITEM_PDL) {
- logger('notifier: target item ITEM_PDL', LOGGER_DEBUG);
+ $unforwardable = ITEM_UNPUBLISHED|ITEM_DELAYED_PUBLISH|ITEM_WEBPAGE|ITEM_BUILDBLOCK|ITEM_PDL;
+ if($target_item['item_restrict'] & $unforwardable) {
+ logger('notifier: target item not forwardable: flags ' . $target_item['item_restrict'], LOGGER_DEBUG);
return;
}