mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
atom feed added
This commit is contained in:
@@ -147,15 +147,15 @@ class LibraryItem extends Model implements HasMedia, Sortable, Feedable
|
||||
|
||||
public function toFeedItem(): FeedItem
|
||||
{
|
||||
|
||||
return FeedItem::create()
|
||||
->id($this->id)
|
||||
->id('news/'. $this->slug)
|
||||
->title($this->name)
|
||||
->enclosure($this->getFirstMediaUrl('main'))
|
||||
->enclosureLength($this->getFirstMedia('main')->size)
|
||||
->enclosureType($this->getFirstMedia('main')->mime_type)
|
||||
->summary($this->excerpt)
|
||||
->updated($this->updated_at)
|
||||
->image($this->getFirstMediaUrl('main'))
|
||||
->link(url()->route('article.view', ['libraryItem' => $this]))
|
||||
->authorName($this->lecturer->name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user