diff options
author | hubzilla <git@macgirvin.com> | 2016-08-14 21:24:24 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-14 21:24:24 +1000 |
commit | d1cb925b5902e01eb1580921260faf3362279249 (patch) | |
tree | 36b38379936da4c70d300443fb8176e2fe48ec50 /Zotlabs/Module/Item.php | |
parent | 993b182f811a6e7f3287c9554b00abd72517954d (diff) | |
parent | 229cc2ac431cdcef80cc45a42178fe7a1e4233e4 (diff) | |
download | volse-hubzilla-d1cb925b5902e01eb1580921260faf3362279249.tar.gz volse-hubzilla-d1cb925b5902e01eb1580921260faf3362279249.tar.bz2 volse-hubzilla-d1cb925b5902e01eb1580921260faf3362279249.zip |
Merge pull request #482 from anaqreon/nocomment
Added an optional post editor button to toggle comments
Diffstat (limited to 'Zotlabs/Module/Item.php')
-rw-r--r-- | Zotlabs/Module/Item.php | 2 |
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 |