diff options
-rwxr-xr-x | boot.php | 1 | ||||
-rw-r--r-- | include/notifier.php | 5 | ||||
-rw-r--r-- | mod/item.php | 3 |
3 files changed, 9 insertions, 0 deletions
@@ -454,6 +454,7 @@ define ( 'ITEM_DELETED', 0x0010); define ( 'ITEM_UNPUBLISHED', 0x0020); define ( 'ITEM_WEBPAGE', 0x0040); // is a static web page, not a conversational item define ( 'ITEM_DELAYED_PUBLISH', 0x0080); +define ( 'ITEM_BUILDBLOCK', 0x0100); // Named thusly to make sure nobody confuses this with ITEM_BLOCKED /** * Item Flags diff --git a/include/notifier.php b/include/notifier.php index dea9d6072..a0c07200a 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -241,6 +241,11 @@ function notifier_run($argv, $argc){ return; } + if($target_item['item_restrict'] & ITEM_BUILDBLOCK) { + logger('notifier: target item ITEM_BUILDBLOCK', LOGGER_DEBUG); + return; + } + $s = q("select * from channel where channel_id = %d limit 1", intval($target_item['uid']) diff --git a/mod/item.php b/mod/item.php index dc8ee5015..1893a6ef4 100644 --- a/mod/item.php +++ b/mod/item.php @@ -70,6 +70,7 @@ function item_post(&$a) { $categories = ((x($_REQUEST,'category')) ? escape_tags($_REQUEST['category']) : ''); $webpage = ((x($_REQUEST,'webpage')) ? intval($_REQUEST['webpage']) : 0); $pagetitle = ((x($_REQUEST,'pagetitle')) ? escape_tags($_REQUEST['pagetitle']): ''); + $buildblock = ((x($_REQUEST,'buildblock')) ? intval($_REQUEST['buildblock']) : 0); if($pagetitle) { require_once('library/urlify/URLify.php'); @@ -492,6 +493,8 @@ function item_post(&$a) { if($webpage) $item_restrict = $item_restrict | ITEM_WEBPAGE; + if($buildblock) + $item_restrict = $item_restrict | ITEM_BUILDBLOCK; if(! strlen($verb)) |