aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-08-14 06:41:12 -0400
committerAndrew Manning <tamanning@zoho.com>2016-08-14 06:41:12 -0400
commit2e7f4c1870dcd8ce05329b80d97be1269ff2a1a7 (patch)
treed7f9c79a5fb8c162db30ccc651596dee0e293a52 /Zotlabs
parent82d61f194a62a5b078825bf6eb341dbe5d83dfab (diff)
downloadvolse-hubzilla-2e7f4c1870dcd8ce05329b80d97be1269ff2a1a7.tar.gz
volse-hubzilla-2e7f4c1870dcd8ce05329b80d97be1269ff2a1a7.tar.bz2
volse-hubzilla-2e7f4c1870dcd8ce05329b80d97be1269ff2a1a7.zip
Added a disable comments setting to the "Additional features" settings with a corresponding post editor toggle button
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Item.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php
index 2d0c1ba02..8d6d75426 100644
--- a/Zotlabs/Module/Item.php
+++ b/Zotlabs/Module/Item.php
@@ -81,6 +81,7 @@ class Item extends \Zotlabs\Web\Controller {
$api_source = ((x($_REQUEST,'api_source') && $_REQUEST['api_source']) ? true : false);
$consensus = intval($_REQUEST['consensus']);
+ $nocomment = intval($_REQUEST['nocomment']);
// 'origin' (if non-zero) indicates that this network is where the message originated,
// for the purpose of relaying comments to other conversation members.
@@ -707,6 +708,7 @@ class Item extends \Zotlabs\Web\Controller {
$item_wall = (($post_type === 'wall' || $post_type === 'wall-comment') ? 1 : 0);
$item_origin = (($origin) ? 1 : 0);
$item_consensus = (($consensus) ? 1 : 0);
+ $item_nocomment = (($nocomment) ? 1 : 0);
// determine if this is a wall post