aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-10 19:10:18 -0800
committerfriendica <info@friendica.com>2015-02-10 19:10:18 -0800
commit79223b6b3d38bfbfb3a6d9530f6ccc5b7bb096c8 (patch)
tree18ee5a91f1ce6e8d4c964174549ac10f4ab949be /mod/item.php
parent79da33dafdac1427ac07b4414a5da5f9f3a2b03d (diff)
downloadvolse-hubzilla-79223b6b3d38bfbfb3a6d9530f6ccc5b7bb096c8.tar.gz
volse-hubzilla-79223b6b3d38bfbfb3a6d9530f6ccc5b7bb096c8.tar.bz2
volse-hubzilla-79223b6b3d38bfbfb3a6d9530f6ccc5b7bb096c8.zip
item voting tools
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/item.php b/mod/item.php
index 6ae02b510..ef0491895 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -59,6 +59,8 @@ function item_post(&$a) {
$api_source = ((x($_REQUEST,'api_source') && $_REQUEST['api_source']) ? true : false);
+ $consensus = intval($_REQUEST['consensus']);
+
// 'origin' (if non-zero) indicates that this network is where the message originated,
// for the purpose of relaying comments to other conversation members.
// If using the API from a device (leaf node) you must set origin to 1 (default) or leave unset.
@@ -683,6 +685,9 @@ function item_post(&$a) {
$item_flags = $item_flags | ITEM_THREAD_TOP;
}
+ if($consensus)
+ $item_flags |= ITEM_CONSENSUS;
+
if ((! $plink) && ($item_flags & ITEM_THREAD_TOP)) {
$plink = z_root() . '/channel/' . $channel['channel_address'] . '/?f=&mid=' . $mid;
}