aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Vote.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-02-20 17:16:14 +0000
committerMario <mario@mariovavti.com>2020-02-20 17:16:14 +0000
commit7d05b8e5fdcf628f6badaff60c73811dcc19e45c (patch)
treeb80d041658e1f8c0f25292c1e6a109c36e5d6692 /Zotlabs/Module/Vote.php
parentd5ae9aedc44db6fa226edfb4164e2cb182815372 (diff)
downloadvolse-hubzilla-7d05b8e5fdcf628f6badaff60c73811dcc19e45c.tar.gz
volse-hubzilla-7d05b8e5fdcf628f6badaff60c73811dcc19e45c.tar.bz2
volse-hubzilla-7d05b8e5fdcf628f6badaff60c73811dcc19e45c.zip
vote issue
Diffstat (limited to 'Zotlabs/Module/Vote.php')
-rw-r--r--Zotlabs/Module/Vote.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Module/Vote.php b/Zotlabs/Module/Vote.php
index e1932da23..d67a6f176 100644
--- a/Zotlabs/Module/Vote.php
+++ b/Zotlabs/Module/Vote.php
@@ -83,7 +83,7 @@ class Vote extends Controller {
$item['aid'] = $channel['channel_account_id'];
$item['uid'] = $channel['channel_id'];
- $item['item_origin'] = true;
+ $item['item_origin'] = 1;
$item['parent'] = $fetch[0]['id'];
$item['parent_mid'] = $fetch[0]['mid'];
$item['thr_parent'] = $fetch[0]['mid'];
@@ -93,6 +93,9 @@ class Vote extends Controller {
$item['title'] = $res;
$item['author_xchan'] = $channel['channel_hash'];
$item['owner_xchan'] = $fetch[0]['author_xchan'];
+ $item['allow_cid'] = '<' . $fetch[0]['author_xchan'] . '>';
+ $item['item_private'] = 1;
+
$item['obj_type'] = 'Note';
$item['author'] = channelx_by_n($channel['channel_id']);