Remove duplicate fields in Model\Event::getItemArrayForId
- Fix formatting in Model\Event
This commit is contained in:
parent
592e829347
commit
7e8a44c15b
1 changed files with 4 additions and 6 deletions
|
@ -344,7 +344,6 @@ class Event
|
||||||
$event['id'] = $event_id;
|
$event['id'] = $event_id;
|
||||||
|
|
||||||
$item['uid'] = $event['uid'];
|
$item['uid'] = $event['uid'];
|
||||||
$item['contact-id'] = $event['cid'];
|
|
||||||
$item['uri'] = $event['uri'];
|
$item['uri'] = $event['uri'];
|
||||||
$item['uri-id'] = ItemURI::getIdByURI($event['uri']);
|
$item['uri-id'] = ItemURI::getIdByURI($event['uri']);
|
||||||
$item['guid'] = $event['guid'];
|
$item['guid'] = $event['guid'];
|
||||||
|
@ -367,7 +366,6 @@ class Event
|
||||||
$item['visible'] = 1;
|
$item['visible'] = 1;
|
||||||
$item['verb'] = Activity::POST;
|
$item['verb'] = Activity::POST;
|
||||||
$item['object-type'] = Activity\ObjectType::EVENT;
|
$item['object-type'] = Activity\ObjectType::EVENT;
|
||||||
$item['post-type'] = Item::PT_EVENT;
|
|
||||||
$item['origin'] = $event['cid'] === 0 ? 1 : 0;
|
$item['origin'] = $event['cid'] === 0 ? 1 : 0;
|
||||||
$item['body'] = self::getBBCode($event);
|
$item['body'] = self::getBBCode($event);
|
||||||
$item['event-id'] = $event['id'];
|
$item['event-id'] = $event['id'];
|
||||||
|
|
Loading…
Reference in a new issue