diff options
author | friendica <info@friendica.com> | 2014-04-15 18:35:22 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-04-15 18:35:22 -0700 |
commit | 1eb8e570bf3ac3e2fd8e84ba4ebdffd1c864a3e0 (patch) | |
tree | ab3e719aaa06d698801f2168a16ca029b1011f1a /include/notifier.php | |
parent | 9026ea649a92b8f3e48a4940dd02c316c0a87c02 (diff) | |
download | volse-hubzilla-1eb8e570bf3ac3e2fd8e84ba4ebdffd1c864a3e0.tar.gz volse-hubzilla-1eb8e570bf3ac3e2fd8e84ba4ebdffd1c864a3e0.tar.bz2 volse-hubzilla-1eb8e570bf3ac3e2fd8e84ba4ebdffd1c864a3e0.zip |
tag anyone
Diffstat (limited to 'include/notifier.php')
-rw-r--r-- | include/notifier.php | 20 |
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; } |