diff options
author | sirius <sirius83@gmx.de> | 2014-04-20 01:07:36 +0200 |
---|---|---|
committer | jmankiewicz <sirius83@gmx.de> | 2014-04-20 01:12:47 +0200 |
commit | c946d926103a3bce94dcf99a137f3329ce011e2a (patch) | |
tree | 36749769bbd342f078a5315b2736b80e89e4542c /include/notifier.php | |
parent | 6cf5a69d7e8ac12c9c946397ca5c9a1126665974 (diff) | |
parent | 891a7fb0f5651447c43560210126a86a6b69aa29 (diff) | |
download | volse-hubzilla-c946d926103a3bce94dcf99a137f3329ce011e2a.tar.gz volse-hubzilla-c946d926103a3bce94dcf99a137f3329ce011e2a.tar.bz2 volse-hubzilla-c946d926103a3bce94dcf99a137f3329ce011e2a.zip |
Merge branch 'master' of https://github.com/friendica/red into mod-profpicperm
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; } |