atom feed added

This commit is contained in:
HolgerHatGarKeineNode
2023-02-15 21:02:09 +01:00
parent b35ca3456a
commit e6d11ea2e8
2 changed files with 3 additions and 3 deletions

View File

@@ -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);
}