aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-07 22:23:43 -0700
committerfriendica <info@friendica.com>2014-05-07 22:23:43 -0700
commita00103b7dfa0b128cbe6ab03e6a43ccedb24f8c2 (patch)
tree22c095344073aa58d85abcb1b3ae916cb9a0cb7e /include/zot.php
parente22e94cd9708406ef9a96c7ec4bb9216be630ec2 (diff)
downloadvolse-hubzilla-a00103b7dfa0b128cbe6ab03e6a43ccedb24f8c2.tar.gz
volse-hubzilla-a00103b7dfa0b128cbe6ab03e6a43ccedb24f8c2.tar.bz2
volse-hubzilla-a00103b7dfa0b128cbe6ab03e6a43ccedb24f8c2.zip
better event management
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/include/zot.php b/include/zot.php
index ea439a603..7336c4290 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -1452,36 +1452,6 @@ function process_delivery($sender,$arr,$deliveries,$relay,$public = false) {
continue;
}
- // for events, extract the event info and create an event linked to an item
-
- if((x($arr,'obj_type')) && (activity_match($arr['obj_type'],ACTIVITY_OBJ_EVENT))) {
- require_once('include/event.php');
- $ev = bbtoevent($arr['body']);
- if(x($ev,'desc') && x($ev,'start')) {
- $ev['event_xchan'] = $arr['author_xchan'];
- $ev['uid'] = $channel['channel_id'];
- $ev['account'] = $channel['channel_account_id'];
- $ev['edited'] = $arr['edited'];
- $ev['mid'] = $arr['mid'];
- $ev['private'] = $arr['item_private'];
-
- // is this an edit?
-
- $r = q("SELECT resource_id FROM item where mid = '%s' and uid = %d and resource_type = 'event' limit 1",
- dbesc($arr['mid']),
- intval($channel['channel_id'])
- );
- if($r) {
- $ev['event_hash'] = $r[0]['resource_id'];
- }
-
- $xyz = event_store($ev);
- add_source_route($xyz,$sender['hash']);
-
- $result = array($d['hash'],'event processed',$channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>',$arr['mid']);
- continue;
- }
- }
$r = q("select id, edited from item where mid = '%s' and uid = %d limit 1",
dbesc($arr['mid']),