block content-type (called ITEM_BUILDBLOCK to avoid confusion with content that is blocked)
This commit is contained in:
parent
28a8b821b0
commit
04f8de184e
1
boot.php
1
boot.php
@ -454,6 +454,7 @@ define ( 'ITEM_DELETED', 0x0010);
|
|||||||
define ( 'ITEM_UNPUBLISHED', 0x0020);
|
define ( 'ITEM_UNPUBLISHED', 0x0020);
|
||||||
define ( 'ITEM_WEBPAGE', 0x0040); // is a static web page, not a conversational item
|
define ( 'ITEM_WEBPAGE', 0x0040); // is a static web page, not a conversational item
|
||||||
define ( 'ITEM_DELAYED_PUBLISH', 0x0080);
|
define ( 'ITEM_DELAYED_PUBLISH', 0x0080);
|
||||||
|
define ( 'ITEM_BUILDBLOCK', 0x0100); // Named thusly to make sure nobody confuses this with ITEM_BLOCKED
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Item Flags
|
* Item Flags
|
||||||
|
@ -241,6 +241,11 @@ function notifier_run($argv, $argc){
|
|||||||
return;
|
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",
|
$s = q("select * from channel where channel_id = %d limit 1",
|
||||||
intval($target_item['uid'])
|
intval($target_item['uid'])
|
||||||
|
@ -70,6 +70,7 @@ function item_post(&$a) {
|
|||||||
$categories = ((x($_REQUEST,'category')) ? escape_tags($_REQUEST['category']) : '');
|
$categories = ((x($_REQUEST,'category')) ? escape_tags($_REQUEST['category']) : '');
|
||||||
$webpage = ((x($_REQUEST,'webpage')) ? intval($_REQUEST['webpage']) : 0);
|
$webpage = ((x($_REQUEST,'webpage')) ? intval($_REQUEST['webpage']) : 0);
|
||||||
$pagetitle = ((x($_REQUEST,'pagetitle')) ? escape_tags($_REQUEST['pagetitle']): '');
|
$pagetitle = ((x($_REQUEST,'pagetitle')) ? escape_tags($_REQUEST['pagetitle']): '');
|
||||||
|
$buildblock = ((x($_REQUEST,'buildblock')) ? intval($_REQUEST['buildblock']) : 0);
|
||||||
|
|
||||||
if($pagetitle) {
|
if($pagetitle) {
|
||||||
require_once('library/urlify/URLify.php');
|
require_once('library/urlify/URLify.php');
|
||||||
@ -492,6 +493,8 @@ function item_post(&$a) {
|
|||||||
if($webpage)
|
if($webpage)
|
||||||
$item_restrict = $item_restrict | ITEM_WEBPAGE;
|
$item_restrict = $item_restrict | ITEM_WEBPAGE;
|
||||||
|
|
||||||
|
if($buildblock)
|
||||||
|
$item_restrict = $item_restrict | ITEM_BUILDBLOCK;
|
||||||
|
|
||||||
|
|
||||||
if(! strlen($verb))
|
if(! strlen($verb))
|
||||||
|
Reference in New Issue
Block a user