aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2024-10-18 20:18:55 +0200
committerMario Vavti <mario@mariovavti.com>2024-10-18 20:18:55 +0200
commit4acdb8fb102fb20f2bddc9113ea292836ce2daa4 (patch)
treee21f9d359633c8bcdd92662f51f98d9770b1da82 /Zotlabs
parentd7fa6f670906323a161eee15e61744163dc3ea01 (diff)
downloadvolse-hubzilla-4acdb8fb102fb20f2bddc9113ea292836ce2daa4.tar.gz
volse-hubzilla-4acdb8fb102fb20f2bddc9113ea292836ce2daa4.tar.bz2
volse-hubzilla-4acdb8fb102fb20f2bddc9113ea292836ce2daa4.zip
containers: port events
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Channel_calendar.php24
1 files changed, 6 insertions, 18 deletions
diff --git a/Zotlabs/Module/Channel_calendar.php b/Zotlabs/Module/Channel_calendar.php
index 289e3a734..d41c464a6 100644
--- a/Zotlabs/Module/Channel_calendar.php
+++ b/Zotlabs/Module/Channel_calendar.php
@@ -179,26 +179,14 @@ class Channel_calendar extends Controller {
if ($post_tags)
$datarray['term'] = $post_tags;
- $item_id = event_store_item($datarray, $event);
+ $post = event_store_item($datarray, $event);
- if ($item_id) {
- $r = q("select * from item where id = %d",
- intval($item_id)
- );
- if ($r) {
- xchan_query($r);
- $sync_item = fetch_post_tags($r);
- $z = q("select * from event where event_hash = '%s' and uid = %d limit 1",
- dbesc($r[0]['resource_id']),
- intval($channel['channel_id'])
- );
- if ($z) {
- Libsync::build_sync_packet($channel['channel_id'], array('event_item' => array(encode_item($sync_item[0], true)), 'event' => $z));
- }
- }
+ if (!empty($post['item_id'])) {
+ Master::Summon(['Notifier', 'event', $post['item_id']]);
+ }
+ if (!empty($post['approval_id'])) {
+ Master::Summon(['Notifier', 'event', $post['approval_id']]);
}
-
- Master::Summon(array('Notifier', 'event', $item_id));
killme();