From 39d0a3f1f6f2894839460ec706dd7c3d1afb38ca Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 11 Nov 2024 22:25:53 +0000 Subject: containers: poll testing --- include/items.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/items.php') 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)) { -- cgit v1.2.3