diff options
author | Friendika <info@friendika.com> | 2011-06-10 20:39:46 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-06-10 20:39:46 -0700 |
commit | d66056af9d56d86fdb57061c83c9187ea9f51403 (patch) | |
tree | a67a76b3c361d422cea0fa2b880193e88dc22e8c /include | |
parent | 7c60701efc091945dd2ee14728263d8dae0f88b0 (diff) | |
download | volse-hubzilla-d66056af9d56d86fdb57061c83c9187ea9f51403.tar.gz volse-hubzilla-d66056af9d56d86fdb57061c83c9187ea9f51403.tar.bz2 volse-hubzilla-d66056af9d56d86fdb57061c83c9187ea9f51403.zip |
reduce visibility of lang-select flag (duepuntozero)
Diffstat (limited to 'include')
-rw-r--r-- | include/items.php | 14 |
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 +} + |