From f5a9616f09c7e49949b34205f4d39c7e84179977 Mon Sep 17 00:00:00 2001 From: Benjamin Takats Date: Fri, 20 Jan 2023 15:14:17 +0100 Subject: [PATCH] news twitter --- app/Http/Livewire/News/InternArticleView.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Livewire/News/InternArticleView.php b/app/Http/Livewire/News/InternArticleView.php index 7afd1b93..4c09c3e1 100644 --- a/app/Http/Livewire/News/InternArticleView.php +++ b/app/Http/Livewire/News/InternArticleView.php @@ -18,7 +18,7 @@ class InternArticleView extends Component title: $this->libraryItem->name, description: $this->libraryItem->excerpt ?? __('Here we post important news that is relevant for everyone.'), author: $this->libraryItem->lecturer->name, - image: asset('img/einundzwanzig-wallpaper-benrath.png'), + image: $this->libraryItem->getFirstMedia('main') ? $this->libraryItem->getFirstMediaUrl('main') : asset('img/einundzwanzig-wallpaper-benrath.png'), published_time: Carbon::parse($this->libraryItem->created_at), type: 'article', )