diff options
author | friendica <info@friendica.com> | 2015-01-29 14:51:41 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-29 14:51:41 -0800 |
commit | ff68ea608786a698ad46637ef13854ac1b1e6beb (patch) | |
tree | 5e9bec7525754dda60c8c08bc00802160efa202c /include/notifier.php | |
parent | a2cdd1499c968c31ae1b95933231f80be5fc639b (diff) | |
download | volse-hubzilla-ff68ea608786a698ad46637ef13854ac1b1e6beb.tar.gz volse-hubzilla-ff68ea608786a698ad46637ef13854ac1b1e6beb.tar.bz2 volse-hubzilla-ff68ea608786a698ad46637ef13854ac1b1e6beb.zip |
more message restrict conversions
Diffstat (limited to 'include/notifier.php')
-rw-r--r-- | include/notifier.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/notifier.php b/include/notifier.php index 6a6879ebb..79be25621 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -316,9 +316,12 @@ function notifier_run($argv, $argc){ if(intval($target_item['item_deleted'])) logger('notifier: target item ITEM_DELETED', 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); + if(intval($target_item['item_type']) != ITEM_TYPE_POST) { + 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_publish'])) { + logger('notifier: target item not published, so not forwardable', LOGGER_DEBUG); return; } |