mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
stream calendar
This commit is contained in:
@@ -30,6 +30,9 @@ class DownloadMeetupCalendar extends Controller
|
|||||||
$image = $meetup->getFirstMediaUrl('logo');
|
$image = $meetup->getFirstMediaUrl('logo');
|
||||||
} else {
|
} else {
|
||||||
$events = MeetupEvent::query()
|
$events = MeetupEvent::query()
|
||||||
|
->with([
|
||||||
|
'meetup',
|
||||||
|
])
|
||||||
->get();
|
->get();
|
||||||
$name = __('Einundzwanzig Meetups');
|
$name = __('Einundzwanzig Meetups');
|
||||||
$image = asset('img/einundzwanzig-horizontal.png');
|
$image = asset('img/einundzwanzig-horizontal.png');
|
||||||
@@ -38,7 +41,7 @@ class DownloadMeetupCalendar extends Controller
|
|||||||
$entries = [];
|
$entries = [];
|
||||||
foreach ($events as $event) {
|
foreach ($events as $event) {
|
||||||
$entries[] = Event::create()
|
$entries[] = Event::create()
|
||||||
->name($name)
|
->name($request->has('meetup') ? $name : $event->meetup->name)
|
||||||
->uniqueIdentifier(str($name)->slug.$event->id)
|
->uniqueIdentifier(str($name)->slug.$event->id)
|
||||||
->address($event->location)
|
->address($event->location)
|
||||||
->description(str_replace(["\r", "\n"], '', $event->description).' Link: '.$event->link)
|
->description(str_replace(["\r", "\n"], '', $event->description).' Link: '.$event->link)
|
||||||
|
|||||||
Reference in New Issue
Block a user