From: Michael Vogel Date: Fri, 16 Oct 2015 22:58:22 +0000 (+0200) Subject: Store the event when a summary or a description is set X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dd46a6ff680a42e2a8c826a99bf729f90c2afffc;p=friendica.git Store the event when a summary or a description is set --- diff --git a/include/items.php b/include/items.php index c14fcdcc99..795001bec6 100644 --- a/include/items.php +++ b/include/items.php @@ -2849,7 +2849,7 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0, $pass = 0) if((x($datarray,'object-type')) && ($datarray['object-type'] === ACTIVITY_OBJ_EVENT)) { $ev = bbtoevent($datarray['body']); - if(x($ev,'desc') && x($ev,'start')) { + if((x($ev,'desc') || x($ev,'summary')) && x($ev,'start')) { $ev['uid'] = $importer['uid']; $ev['uri'] = $item_id; $ev['edited'] = $datarray['edited']; @@ -4074,7 +4074,7 @@ function local_delivery($importer,$data) { if((x($datarray,'object-type')) && ($datarray['object-type'] === ACTIVITY_OBJ_EVENT)) { $ev = bbtoevent($datarray['body']); - if(x($ev,'desc') && x($ev,'start')) { + if((x($ev,'desc') || x($ev,'summary')) && x($ev,'start')) { $ev['cid'] = $importer['id']; $ev['uid'] = $importer['uid']; $ev['uri'] = $item_id;