diff options
author | Mario <mario@mariovavti.com> | 2024-11-11 22:25:53 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-11-11 22:25:53 +0000 |
commit | 39d0a3f1f6f2894839460ec706dd7c3d1afb38ca (patch) | |
tree | 98a25bd64f84d495c8e049eaa720375abfe3fb50 /include | |
parent | 8268ed1ba7a995fd4559d277999ad5a482571eec (diff) | |
download | volse-hubzilla-39d0a3f1f6f2894839460ec706dd7c3d1afb38ca.tar.gz volse-hubzilla-39d0a3f1f6f2894839460ec706dd7c3d1afb38ca.tar.bz2 volse-hubzilla-39d0a3f1f6f2894839460ec706dd7c3d1afb38ca.zip |
containers: poll testing
Diffstat (limited to 'include')
-rw-r--r-- | include/items.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php index 41c60103c..41bb3cff7 100644 --- a/include/items.php +++ b/include/items.php @@ -1897,7 +1897,7 @@ function item_store($arr, $allow_exec = false, $deliver = true, $addAndSync = tr $arr['item_private'] = 0; if(in_array($arr['obj_type'], ['Note','Answer']) && $r[0]['obj_type'] === 'Question' && intval($r[0]['item_wall'])) { - Activity::update_poll($r[0]['id'], $arr); + Activity::update_poll($r[0], $arr); } } @@ -4034,6 +4034,7 @@ function find_related($item) { if (! $allRelated) { return false; } + if ($item['verb'] === 'Add' && $item['tgt_type'] === 'Collection') { $thisItem = json_decode($item['obj'],true); if (is_array($thisItem)) { |