diff options
Diffstat (limited to 'internal/feed/feed.go')
-rw-r--r-- | internal/feed/feed.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/feed/feed.go b/internal/feed/feed.go index 4ee2875..6b95f6e 100644 --- a/internal/feed/feed.go +++ b/internal/feed/feed.go @@ -26,6 +26,13 @@ type feeditem struct { *gofeed.Item } +func (item feeditem) Creator() string { + if item.Item.Author != nil { + return item.Item.Author.Name + } + return "" +} + func (feed *Feed) descriptor() feedDescriptor { return feedDescriptor{ Name: feed.Name, |