diff options
author | Mario Vavti <mario@mariovavti.com> | 2024-10-11 17:10:56 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2024-10-11 17:10:56 +0200 |
commit | d5291e9b074fbf408cdbf0ce88567e0a4ed48e07 (patch) | |
tree | 8c6a073b91e8627c4afd08c3e90828216d23e862 /Zotlabs/Module/Vote.php | |
parent | a1818b1a29974132e16fb68c65c1b3a9904a5b18 (diff) | |
download | volse-hubzilla-d5291e9b074fbf408cdbf0ce88567e0a4ed48e07.tar.gz volse-hubzilla-d5291e9b074fbf408cdbf0ce88567e0a4ed48e07.tar.bz2 volse-hubzilla-d5291e9b074fbf408cdbf0ce88567e0a4ed48e07.zip |
containers: port core modules and attach_store_item()
Diffstat (limited to 'Zotlabs/Module/Vote.php')
-rw-r--r-- | Zotlabs/Module/Vote.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Zotlabs/Module/Vote.php b/Zotlabs/Module/Vote.php index 06c47f91f..d288426e9 100644 --- a/Zotlabs/Module/Vote.php +++ b/Zotlabs/Module/Vote.php @@ -108,9 +108,12 @@ class Vote extends Controller { if($x['success']) { $itemid = $x['item_id']; - Master::Summon( [ 'Notifier', 'like', $itemid ] ); + Master::Summon( ['Notifier', 'like', $itemid ] ); + if (!empty($x['approval_id'])) { + Master::Summon(['Notifier', 'like', $x['approval_id']]); + } } - +/* $r = q("select * from item where id = %d", intval($itemid) ); @@ -119,6 +122,7 @@ class Vote extends Controller { $sync_item = fetch_post_tags($r); Libsync::build_sync_packet($channel['channel_id'], [ 'item' => [ encode_item($sync_item[0],true) ] ]); } +*/ } $ret['success'] = true; |