Generate UIDs by the URL
This commit is contained in:
parent
8bccaab4a2
commit
2ceb78114d
1 changed files with 2 additions and 0 deletions
|
@ -139,12 +139,14 @@ class Event extends BaseEntity
|
||||||
$categories[] = $tag->name;
|
$categories[] = $tag->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$uid = sprintf("https://%s/termine/%s",$_SERVER['HTTP_HOST'],$this->slug);
|
||||||
$event = [
|
$event = [
|
||||||
'SUMMARY' => $this->summary,
|
'SUMMARY' => $this->summary,
|
||||||
'DTSTART' => $this->startdate,
|
'DTSTART' => $this->startdate,
|
||||||
'DESCRIPTION' => $this->description,
|
'DESCRIPTION' => $this->description,
|
||||||
'URL' => $this->url,
|
'URL' => $this->url,
|
||||||
'CATEGORIES' => $categories,
|
'CATEGORIES' => $categories,
|
||||||
|
'UID' => $uid,
|
||||||
];
|
];
|
||||||
if (!is_null($this->enddate))
|
if (!is_null($this->enddate))
|
||||||
$event["DTEND"] = $this->enddate;
|
$event["DTEND"] = $this->enddate;
|
||||||
|
|
Reference in a new issue