Set the URI of the event as UID

Fixes #35
This commit is contained in:
Tim Schumacher 2014-11-22 21:54:47 +01:00
parent ddd745e190
commit cc9a48315f

View file

@ -150,7 +150,8 @@ class Event extends BaseEntity
$event->setEnd($this->enddate);
$event->setSummary($this->summary);
$event->setUrl($this->url);
$event->setUid($this->id);
$uid = sprintf("https://%s/termine/%s",$_SERVER['HTTP_HOST'],$this->slug);
$event->setUid($uid);
if (count($this->tags) > 0) {
$categories = [];
foreach($this->tags as $tag) {