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

View File

@@ -27,7 +27,7 @@ return [
* a banner/logo; for RSS and JSON feeds, it's displayed as an icon.
* An empty value omits the image attribute from the feed.
*/
'image' => '/img/einundzwanzig.png',
'image' => asset('img/einundzwanzig.png'),
/*
* The format of the feed. Acceptable values are 'rss', 'atom', or 'json'.