aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-04-08 18:41:54 +0000
committerMario <mario@mariovavti.com>2020-04-08 18:41:54 +0000
commit806c738923b9d880af49a1811d8fbf2c2ee36309 (patch)
treeca9e38c7f1cf917bbae10399378fd1cdb4109fec /include
parent9c2d48bcd4b8c5cb4efea1232ef3e52c1a0649c9 (diff)
downloadvolse-hubzilla-806c738923b9d880af49a1811d8fbf2c2ee36309.tar.gz
volse-hubzilla-806c738923b9d880af49a1811d8fbf2c2ee36309.tar.bz2
volse-hubzilla-806c738923b9d880af49a1811d8fbf2c2ee36309.zip
remove voting from UI in favour of polls
Diffstat (limited to 'include')
-rw-r--r--include/conversation.php8
-rw-r--r--include/features.php8
2 files changed, 0 insertions, 16 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 62d4b405f..49dd411fb 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1287,13 +1287,6 @@ function hz_status_editor($a, $x, $popup = false) {
$plaintext = true;
-// if(feature_enabled(local_channel(),'richtext'))
-// $plaintext = false;
-
- $feature_voting = feature_enabled($x['profile_uid'], 'consensus_tools');
- if(x($x, 'hide_voting'))
- $feature_voting = false;
-
$feature_nocomment = feature_enabled($x['profile_uid'], 'disable_comments');
if(x($x, 'disable_comments'))
$feature_nocomment = false;
@@ -1446,7 +1439,6 @@ function hz_status_editor($a, $x, $popup = false) {
'$poll_add_option_label' => t('Add option'),
'$poll_expire_unit_label' => [t('Minutes'), t('Hours'), t('Days')],
'$multiple_answers' => ['poll_multiple_answers', t("Allow multiple answers"), '', '', [t('No'), t('Yes')]],
- '$feature_voting' => $feature_voting,
'$consensus' => ((array_key_exists('item',$x)) ? $x['item']['item_consensus'] : 0),
'$nocommenttitle' => t('Disable comments'),
'$nocommenttitlesub' => t('Toggle comments'),
diff --git a/include/features.php b/include/features.php
index c6cfcf822..0dd245e7f 100644
--- a/include/features.php
+++ b/include/features.php
@@ -229,14 +229,6 @@ function get_features($filtered = true, $level = (-1)) {
false,
get_config('feature_lock','content_encrypt'),
],
-
- [
- 'consensus_tools',
- t('Enable Voting Tools'),
- t('Provide a class of post which others can vote on'),
- false,
- get_config('feature_lock','consensus_tools'),
- ],
[
'disable_comments',