From 04f8de184e8c925e38335eb18c102985ce421f95 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 12 Aug 2013 17:42:52 -0700 Subject: block content-type (called ITEM_BUILDBLOCK to avoid confusion with content that is blocked) --- mod/item.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mod/item.php') 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)) -- cgit v1.2.3