aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2020-01-31 12:51:23 -0800
committerzotlabs <mike@macgirvin.com>2020-01-31 12:51:23 -0800
commitfc9e6d289acf30f89da0051a90cbf16f0bc006fb (patch)
treee84505932caf4a91c31dee826b63d8df2bcae25b /include
parent6838342d625236a05695d73efd99f1afdab67d96 (diff)
downloadvolse-hubzilla-fc9e6d289acf30f89da0051a90cbf16f0bc006fb.tar.gz
volse-hubzilla-fc9e6d289acf30f89da0051a90cbf16f0bc006fb.tar.bz2
volse-hubzilla-fc9e6d289acf30f89da0051a90cbf16f0bc006fb.zip
missing piece of poll code
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 9f90b2f3b..c5743e91c 100755
--- a/include/items.php
+++ b/include/items.php
@@ -9,6 +9,7 @@ use Zotlabs\Lib\MarkdownSoap;
use Zotlabs\Lib\MessageFilter;
use Zotlabs\Lib\ThreadListener;
use Zotlabs\Lib\IConfig;
+use Zotlabs\Lib\Activity;
use Zotlabs\Access\PermissionLimits;
use Zotlabs\Access\AccessList;
use Zotlabs\Daemon\Master;
@@ -1947,6 +1948,11 @@ function item_store($arr, $allow_exec = false, $deliver = true) {
if(intval($r[0]['item_uplink']) && (! $r[0]['item_private']))
$arr['item_private'] = 0;
+
+ if(in_array($arr['verb'], ['Note','Answer']) && $arr['obj_type'] === 'Question' && intval($r[0]['item_wall'])) {
+ Activity::update_poll($r[0],$arr['mid'],$arr['title']);
+ }
+
}
else {
logger('item_store: item parent was not found - ignoring item');