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;
|
||||
}
|
||||
|
||||
$uid = sprintf("https://%s/termine/%s",$_SERVER['HTTP_HOST'],$this->slug);
|
||||
$event = [
|
||||
'SUMMARY' => $this->summary,
|
||||
'DTSTART' => $this->startdate,
|
||||
'DESCRIPTION' => $this->description,
|
||||
'URL' => $this->url,
|
||||
'CATEGORIES' => $categories,
|
||||
'UID' => $uid,
|
||||
];
|
||||
if (!is_null($this->enddate))
|
||||
$event["DTEND"] = $this->enddate;
|
||||
|
|
Reference in a new issue