aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorTobias Diekershoff <tobias.diekershoff@gmx.net>2011-06-11 08:33:02 +0200
committerTobias Diekershoff <tobias.diekershoff@gmx.net>2011-06-11 08:33:02 +0200
commit4d3c6941cafb3b8a7e1d2ccccd5003a2dc468a4d (patch)
tree74205c0f87d9abf2cd2fe80563643bcbf3ab0a8c /include/items.php
parenteb6666e1563cef91843539d3b98dc4936c4cea1f (diff)
parentd66056af9d56d86fdb57061c83c9187ea9f51403 (diff)
downloadvolse-hubzilla-4d3c6941cafb3b8a7e1d2ccccd5003a2dc468a4d.tar.gz
volse-hubzilla-4d3c6941cafb3b8a7e1d2ccccd5003a2dc468a4d.tar.bz2
volse-hubzilla-4d3c6941cafb3b8a7e1d2ccccd5003a2dc468a4d.zip
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index a5d430aa2..db500fda2 100644
--- a/include/items.php
+++ b/include/items.php
@@ -1334,6 +1334,17 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0, $secure_fee
$datarray['author-avatar'] = $contact['thumb'];
}
+ if((x($datarray,'object-type')) && ($datarray['object-type'] === ACTIVITY_OBJ_EVENT)) {
+ $ev = bbtoevent($datarray['body']);
+ if(x($ev,'desc') && x($ev,'start')) {
+ $r = q("SELECT * FROM `event` WHERE `uri` = '%s' AND `uid` = %d LIMIT 1",
+ dbesc($item_id),
+ intval($importer['uid'])
+ );
+ // import/update event
+
+ }
+ }
$r = q("SELECT `uid`, `last-child`, `edited`, `body` FROM `item` WHERE `uri` = '%s' AND `uid` = %d LIMIT 1",
dbesc($item_id),
intval($importer['uid'])
@@ -1751,4 +1762,5 @@ function item_expire($uid,$days) {
proc_run('php',"include/notifier.php","expire","$uid");
-} \ No newline at end of file
+}
+