diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-25 18:18:07 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-25 18:18:07 +0200 |
commit | e7acda5f2494d78f7bd41c4b7eff982f007a1b36 (patch) | |
tree | 99be15da05ca9aebb7db9b9cc950454c5df34a64 /internal/feed/feed.go | |
parent | 5886c4396c7e24c8d86c0f18c2e7215f792e25fb (diff) | |
download | feed2imap-go-e7acda5f2494d78f7bd41c4b7eff982f007a1b36.tar.gz feed2imap-go-e7acda5f2494d78f7bd41c4b7eff982f007a1b36.tar.bz2 feed2imap-go-e7acda5f2494d78f7bd41c4b7eff982f007a1b36.zip |
feeditem.Creator
Diffstat (limited to '')
-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, |